comparison src/org/eclipse/jetty/server/nio/BlockingChannelConnector.java @ 1004:3fa54d9d19cd

better handling of BindException
author Franklin Schmidt <fschmidt@gmail.com>
date Sat, 22 Oct 2016 23:00:57 -0600
parents 39154cfa58e4
children 0e96ce3db20a
comparison
equal deleted inserted replaced
1003:21910079096e 1004:3fa54d9d19cd
196 { 196 {
197 try 197 try
198 { 198 {
199 _timeout = getMaxIdleTime(); 199 _timeout = getMaxIdleTime();
200 _endpoints.add(this); 200 _endpoints.add(this);
201 201 /*
202 while (isOpen()) 202 while (isOpen())
203 { 203 {
204 _idleTimestamp = System.currentTimeMillis(); 204 _idleTimestamp = System.currentTimeMillis();
205 _connection.handle(); 205 _connection.handle();
206 } 206 }
207 */
208 _idleTimestamp = System.currentTimeMillis();
209 _connection.handle();
210 if( isOpen() ) throw new RuntimeException();
207 } 211 }
208 catch (EofException e) 212 catch (EofException e)
209 { 213 {
210 LOG.debug("EOF", e); 214 LOG.debug("EOF", e);
211 try{BlockingChannelEndPoint.this.close();} 215 try{BlockingChannelEndPoint.this.close();}