THRIFT-3720 TTcpSocketStreamImpl.Read() returns 0 if not all requested bytes could be read
Client: Delphi
Patch: Jens Geyer
diff --git a/lib/delphi/src/Thrift.Transport.pas b/lib/delphi/src/Thrift.Transport.pas
index 74afb52..9fd52a8 100644
--- a/lib/delphi/src/Thrift.Transport.pas
+++ b/lib/delphi/src/Thrift.Transport.pas
@@ -1340,7 +1340,7 @@
else wfd := WaitForData( SLEEP_TIME, pDest, count, wsaError, nBytes);
case wfd of
- TWaitForData.wfd_Error : Exit(0);
+ TWaitForData.wfd_Error : Exit;
TWaitForData.wfd_HaveData : Break;
TWaitForData.wfd_Timeout : begin
if (FTimeout > 0)