[freenet-cvs] r19657 - trunk/freenet/src/freenet/node/fcp

toad at freenetproject.org toad at freenetproject.org
Thu May 1 17:55:27 UTC 2008


Author: toad
Date: 2008-05-01 17:55:27 +0000 (Thu, 01 May 2008)
New Revision: 19657

Modified:
   trunk/freenet/src/freenet/node/fcp/FCPConnectionHandler.java
Log:
Revert 19655, fatal protocol errors don't cause connection close.

Modified: trunk/freenet/src/freenet/node/fcp/FCPConnectionHandler.java
===================================================================
--- trunk/freenet/src/freenet/node/fcp/FCPConnectionHandler.java	2008-05-01 17:54:29 UTC (rev 19656)
+++ trunk/freenet/src/freenet/node/fcp/FCPConnectionHandler.java	2008-05-01 17:55:27 UTC (rev 19657)
@@ -218,7 +218,7 @@
 					outputHandler.queue(new ProtocolErrorMessage(e.protocolCode, false, e.getMessage(), e.ident, e.global));
 					return;
 				} catch (MalformedURLException e) {
-					failedMessage = new ProtocolErrorMessage(ProtocolErrorMessage.FREENET_URI_PARSE_ERROR, false, null, id, message.global);
+					failedMessage = new ProtocolErrorMessage(ProtocolErrorMessage.FREENET_URI_PARSE_ERROR, true, null, id, message.global);
 				}
 				if(!persistent)
 					requestsByIdentifier.put(id, cp);
@@ -265,7 +265,7 @@
 			} catch (IdentifierCollisionException e) {
 				success = false;
 			} catch (MalformedURLException e) {
-				failedMessage = new ProtocolErrorMessage(ProtocolErrorMessage.FREENET_URI_PARSE_ERROR, false, null, id, message.global);
+				failedMessage = new ProtocolErrorMessage(ProtocolErrorMessage.FREENET_URI_PARSE_ERROR, true, null, id, message.global);
 			}
 			if(!persistent) {
 				synchronized(this) {




More information about the cvs mailing list