summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/main/java/org/openslx/thrifthelper/TBinaryProtocolSafe.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/org/openslx/thrifthelper/TBinaryProtocolSafe.java b/src/main/java/org/openslx/thrifthelper/TBinaryProtocolSafe.java
index 3699267..0f96788 100644
--- a/src/main/java/org/openslx/thrifthelper/TBinaryProtocolSafe.java
+++ b/src/main/java/org/openslx/thrifthelper/TBinaryProtocolSafe.java
@@ -90,7 +90,8 @@ public class TBinaryProtocolSafe extends TBinaryProtocol
// ignore there. Let's hope it will stay ignored in the future.
throw new TTransportException( TTransportException.END_OF_FILE );
}
- } else if ( e.getCause() instanceof SocketException && e.getCause().getMessage().contains( " timed out" ) ) {
+ } else if ( e.getCause() instanceof SocketException
+ && ( e.getCause().getMessage().contains( " timed out" ) || e.getCause().getMessage().contains( "Connection reset" ) ) ) {
// Faaaake
throw new TTransportException( TTransportException.END_OF_FILE );
} else if ( e.getMessage().contains( "larger than max length" ) ) {