Date: Thursday, March 2, 2006 @ 13:59:44
Author: zsolt
Path: /cvsroot/carob/carob/src
Modified: JavaSocket.cpp (1.43 -> 1.44)
Modified receiveFromSocket() to not throw an exception in case the length is 0.
(CAROB-66)
----------------+
JavaSocket.cpp | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
Index: carob/src/JavaSocket.cpp
diff -u carob/src/JavaSocket.cpp:1.43 carob/src/JavaSocket.cpp:1.44
--- carob/src/JavaSocket.cpp:1.43 Fri Feb 24 18:30:33 2006
+++ carob/src/JavaSocket.cpp Thu Mar 2 13:59:44 2006
@@ -380,7 +380,7 @@
{
throw SocketIOException(fctName + L"Could not read from socket.");
}
- else if (status == 0)
+ else if (status == 0 && len > 0)
{
throw SocketIOException(fctName + L"Peer reset connection while reading
integer.");
}
_______________________________________________
Carob-commits mailing list
[email protected]
https://forge.continuent.org/mailman/listinfo/carob-commits