You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Neil Williams (Jira)" <ji...@apache.org> on 2020/07/07 17:32:00 UTC

[jira] [Created] (THRIFT-5248) Python: Make TSocket.isOpen check if the other end is still connected

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)