Author: toad
Date: 2008-05-01 17:51:33 +0000 (Thu, 01 May 2008)
New Revision: 19655
Modified:
trunk/freenet/src/freenet/node/fcp/FCPConnectionHandler.java
Log:
Don't terminate the FCP connection on getting an insert with a bogus URI.
Modified: trunk/freenet/src/freenet/node/fcp/FCPConnectionHandler.java
===================================================================
--- trunk/freenet/src/freenet/node/fcp/FCPConnectionHandler.java
2008-05-01 15:56:41 UTC (rev 19654)
+++ trunk/freenet/src/freenet/node/fcp/FCPConnectionHandler.java
2008-05-01 17:51:33 UTC (rev 19655)
@@ -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, true, null,
id, message.global);
+ failedMessage = new
ProtocolErrorMessage(ProtocolErrorMessage.FREENET_URI_PARSE_ERROR, false, 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, true, null,
id, message.global);
+ failedMessage = new
ProtocolErrorMessage(ProtocolErrorMessage.FREENET_URI_PARSE_ERROR, false, null,
id, message.global);
}
if(!persistent) {
synchronized(this) {