[
https://issues.apache.org/jira/browse/THRIFT-4904?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Sylwester Lachiewicz resolved THRIFT-4904.
------------------------------------------
Fix Version/s: 0.13.0
Resolution: Fixed
Resolving. {{lib/py/src/transport/TSocket.py}} wraps {{socket.error}},
{{socket.gaierror}} and {{socket.timeout}} in {{TTransportException}} on every
open, read, write and listen path, so no low-level exception escapes to the
caller. Commit {{3131fe975}}, first released in 0.13.0.
_This comment was created with AI assistance._
> Python TSocket read() and write() allow low level exceptions to escape
> ----------------------------------------------------------------------
>
> Key: THRIFT-4904
> URL: https://issues.apache.org/jira/browse/THRIFT-4904
> Project: Thrift
> Issue Type: Bug
> Components: Python - Library
> Affects Versions: 0.12.0
> Reporter: James E. King III
> Priority: Major
> Fix For: 0.13.0
>
>
> The calls to socket send() and recv() inside write() and read() were allowing
> exceptions to escape:
> - OSError
> - socket.error
> - ssl.Error
> These need to be captured and translated to an appropriate
> TTransportException.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)