I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Commit f772d6dd authored by jrandom's avatar jrandom Committed by zzz
Browse files

/me reboots brain, understands, and thanks mihi

parent cd37c301
No related branches found
No related tags found
No related merge requests found
...@@ -372,15 +372,8 @@ class I2PSocketImpl implements I2PSocket { ...@@ -372,15 +372,8 @@ class I2PSocketImpl implements I2PSocket {
if (len != -1) { if (len != -1) {
bc.append(buffer, len); bc.append(buffer, len);
} else if (bcsize == 0) { } else if (bcsize == 0) {
// nothing left in the buffer, but the read(..) didn't EOF (-1) // nothing left in the buffer, and read(..) got EOF (-1).
// this used to be 'break' (aka return false), though that seems // the bart the
// odd to me - shouldn't it keep reading packets until EOF?
// but perhaps there's something funky in the stream's operation,
// or some other dependency within the rest of the ministreaming
// lib, so for the moment, return false. --jr
// --
// hehe, look at the else. This case is only used iff len == -1
// and bcsize == 0 (i.e. there is an EOF) --mihi
return false; return false;
} }
if ((bcsize < MAX_PACKET_SIZE) && (in.available() == 0)) { if ((bcsize < MAX_PACKET_SIZE) && (in.available() == 0)) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment