Author: toad
Date: 2009-01-03 15:31:12 +0000 (Sat, 03 Jan 2009)
New Revision: 24903
Modified:
trunk/plugins/UPnP/org/cybergarage/http/HTTPServer.java
Log:
Prevent UPnP from stalling shutdown.
Modified: trunk/plugins/UPnP/org/cybergarage/http/HTTPServer.java
===================================================================
--- trunk/plugins/UPnP/org/cybergarage/http/HTTPServer.java 2009-01-03
15:14:59 UTC (rev 24902)
+++ trunk/plugins/UPnP/org/cybergarage/http/HTTPServer.java 2009-01-03
15:31:12 UTC (rev 24903)
@@ -88,6 +88,7 @@
bindAddr = InetAddress.getByName(addr);
bindPort = port;
serverSock = new ServerSocket(bindPort, 0, bindAddr);
+ serverSock.setSoTimeout(10*1000);
}
catch (IOException e) {
return false;
_______________________________________________
cvs mailing list
[email protected]
http://emu.freenetproject.org/cgi-bin/mailman/listinfo/cvs