Author: j16sdiz
Date: 2009-04-08 05:03:33 +0000 (Wed, 08 Apr 2009)
New Revision: 26635

Modified:
   trunk/freenet/src/freenet/io/comm/UdpSocketHandler.java
Log:
Reduce SocketTimeOutException

SocketTimeOutException was causing the thread wake up
every 1 second and creating (slow) Exceptions.

This patch, however, effectivly broke the Hang Checker,
hence must be applied after the "Remove UDPSocket Hang
Checker" patch.

Modified: trunk/freenet/src/freenet/io/comm/UdpSocketHandler.java
===================================================================
--- trunk/freenet/src/freenet/io/comm/UdpSocketHandler.java     2009-04-08 
05:03:11 UTC (rev 26634)
+++ trunk/freenet/src/freenet/io/comm/UdpSocketHandler.java     2009-04-08 
05:03:33 UTC (rev 26635)
@@ -60,7 +60,6 @@
                try {
                        // Exit reasonably quickly
                        _sock.setReuseAddress(true);
-                       _sock.setSoTimeout(1000);
                } catch (SocketException e) {
                        throw new RuntimeException(e);
                }

_______________________________________________
cvs mailing list
[email protected]
http://emu.freenetproject.org/cgi-bin/mailman/listinfo/cvs

Reply via email to