Uploaded image for project: 'Thrift'
  1. Thrift
  2. THRIFT-5248

Python: Make TSocket.isOpen check if the other end is still connected

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.14.0
    • Component/s: Python - Library
    • Labels:
      None

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                spladug Neil Williams
                Reporter:
                spladug Neil Williams
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 2h 50m
                  2h 50m