[
https://issues.apache.org/jira/browse/THRIFT-794?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Sylwester Lachiewicz resolved THRIFT-794.
-----------------------------------------
Fix Version/s: 0.13.0
Resolution: Fixed
{{socket.error}} on recv()/send() has been wrapped in {{TTransportException}}
since [3131fe97|https://github.com/apache/thrift/commit/3131fe975] (the
THRIFT-4904 work, 2019):
[TSocket.py|https://github.com/apache/thrift/blob/master/lib/py/src/transport/TSocket.py]
wraps {{socket.error}}, {{socket.gaierror}} and {{socket.timeout}} on every
open, read, write and listen path. First released in 0.13.0. Resolving as Fixed.
> TSocket doesn't handle socket.error on recv() & send()
> ------------------------------------------------------
>
> Key: THRIFT-794
> URL: https://issues.apache.org/jira/browse/THRIFT-794
> Project: Thrift
> Issue Type: Bug
> Components: Python - Library
> Affects Versions: 0.2
> Environment: Linux & Python 2.6
> Reporter: tholzer
> Priority: Minor
> Labels: TSocket, error, exception, read, recv, send, socket,
> write
> Fix For: 0.13.0
>
>
> Inside TSocket, the read() & write() methods call send() & recv()
> respectively. These methods can throw a number of Exceptions which need to be
> translated into a TTransportException with the original Exception information
> intact.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)