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

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

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 0.14.0
    • Python - Library
    • 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

              spladug Neil Williams
              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