belugabehr commented on a change in pull request #2399:
URL: https://github.com/apache/thrift/pull/2399#discussion_r640044412



##########
File path: lib/java/src/org/apache/thrift/transport/TIOStreamTransport.java
##########
@@ -174,6 +175,8 @@ public int read(byte[] buf, int off, int len) throws 
TTransportException {
     int bytesRead;
     try {
       bytesRead = inputStream_.read(buf, off, len);
+    } catch (SocketTimeoutException ste) {
+      throw new TTransportException(TTransportException.TIMED_OUT, ste);

Review comment:
       
https://github.com/apache/thrift/blob/master/lib/java/src/org/apache/thrift/server/TThreadPoolServer.java#L285-L291
   
   This is where the TIMED_OUT is handled differently.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to