[ 
https://issues.apache.org/jira/browse/THRIFT-5248?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Yuxuan Wang resolved THRIFT-5248.
---------------------------------
    Fix Version/s: 0.14.0
       Resolution: Fixed

> 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
>            Priority: Minor
>             Fix For: 0.14.0
>
>          Time Spent: 2h 50m
>  Remaining Estimate: 0h
>
> 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