Neil Williams created THRIFT-5248:
-------------------------------------

             Summary: Python: Make TSocket.isOpen check if the other end is 
still connected
                 Key: THRIFT-5248
                 URL: https://issues.apache.org/jira/browse/THRIFT-5248
             Project: Thrift
          Issue Type: Improvement
          Components: Python - Library
            Reporter: Neil Williams
            Assignee: Neil Williams


Inspired by THRIFT-5214 and [this blog 
post|[https://github.blog/2020-05-20-three-bugs-in-the-go-mysql-driver/]] by 
proxy, I'd like to make Python's TSocket.isOpen() method check if the other end 
has closed the connection (using a non-blocking recv()). This will allow 
clients to discard disconnected sockets in connection pools before wasting time 
by sending a doomed RPC.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to