THRIFT-3733 Socket timeout improvements
Client: Delphi
Patch: Jens Geyer
diff --git a/lib/delphi/src/Thrift.Transport.pas b/lib/delphi/src/Thrift.Transport.pas
index 88de6f4..c0d6712 100644
--- a/lib/delphi/src/Thrift.Transport.pas
+++ b/lib/delphi/src/Thrift.Transport.pas
@@ -1069,9 +1069,9 @@
end;
data_len := len - FHeaderSize;
- if (data_len < 0) then
- begin
- raise Exception.Create( 'TFramedTransport.Flush: data_len < 0' );
+ if (data_len < 0) then begin
+ raise TTransportException.Create( TTransportException.TExceptionType.Unknown,
+ 'TFramedTransport.Flush: data_len < 0' );
end;
InitWriteBuffer;