TSocket doesn't handle socket.gaierror on open()
------------------------------------------------
Key: THRIFT-793
URL: https://issues.apache.org/jira/browse/THRIFT-793
Project: Thrift
Issue Type: Bug
Components: Library (Python)
Affects Versions: 0.2
Environment: Linux & Python 2.6
Reporter: tholzer
Inside TSocket open(), _resolveAddr() calls getaddrinfo() which can throw
socket.gaierror:
{noformat}
try:
res0 = self._resolveAddr()
...
except socket.error, e:
...
raise TTransportException(TTransportException.NOT_OPEN, message)
{noformat}
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.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.