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

TSocket doesn't handle socket.gaierror on open()

    XMLWordPrintableJSON

    Details

      Description

      Inside TSocket open(), _resolveAddr() calls getaddrinfo() which can throw socket.gaierror:

      try:
        res0 = self._resolveAddr()
        ...
      except socket.error, e:
        ...
        raise TTransportException(TTransportException.NOT_OPEN, message)
      

      This needs to be caught by the exception handler and translated into an appropriate TTransportException with as much detail as possible about the original socket.gaierror.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                tholzer tholzer
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated: