From: Wolfgang M. M. <wol...@us...> - 2004-09-12 19:47:07
|
Update of /cvsroot/exist/eXist-1.0/src/org/exist/http In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19947/src/org/exist/http Modified Files: HttpServer.java Log Message: HttpServer should close the ServerSocket after shutdown. Index: HttpServer.java =================================================================== RCS file: /cvsroot/exist/eXist-1.0/src/org/exist/http/HttpServer.java,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** HttpServer.java 5 Mar 2004 11:15:28 -0000 1.5 --- HttpServer.java 12 Sep 2004 19:46:56 -0000 1.6 *************** *** 113,117 **** sock.setSoTimeout( 500 ); LOG.debug( "listening at port " + port ); ! while ( !stop ) try { Socket s = sock.accept(); --- 113,117 ---- sock.setSoTimeout( 500 ); LOG.debug( "listening at port " + port ); ! while ( !stop ) { try { Socket s = sock.accept(); *************** *** 122,126 **** } catch ( InterruptedIOException ie ) { } ! } catch ( IOException io ) { LOG.error( io ); --- 122,128 ---- } catch ( InterruptedIOException ie ) { } ! } ! LOG.info("Shutting down ..."); ! sock.close(); } catch ( IOException io ) { LOG.error( io ); |