/*
- * jSite2 - FcpConnectionHandler.java -
- * Copyright © 2008 David Roden
+ * jFCPlib - FcpConnectionHandler.java - Copyright © 2008 David Roden
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* Handles an FCP connection to a node.
*
* @author David ‘Bombe’ Roden <bombe@freenetproject.org>
- * @version $Id$
*/
class FcpConnectionHandler implements Runnable {
fcpMessage = new FcpMessage(line);
continue;
}
- if ("EndMessage".equals(line)) {
+ if ("EndMessage".equalsIgnoreCase(line) || "Data".equalsIgnoreCase(line)) {
fcpConnection.handleMessage(fcpMessage);
fcpMessage = null;
}
String value = line.substring(equalSign + 1);
assert fcpMessage != null: "fcp message is null";
fcpMessage.setField(field, value);
- } catch (IOException e) {
- throwable = null;
+ } catch (IOException ioe1) {
+ throwable = ioe1;
break;
}
}