r26635 - trunk/freenet/src/freenet/io/comm

[email protected]
Newsgroups gmane.network.freenet.cvs
Message-ID <[email protected]>
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);
 		}
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.