[
https://issues.apache.org/jira/browse/THRIFT-1407?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
[email protected] updated THRIFT-1407:
------------------------------------
Attachment: TSocket.py.patch
Patch fixing the typo
> Typo in Python socket server causes Thrift to fail when we enable a global
> socket timout
> ----------------------------------------------------------------------------------------
>
> Key: THRIFT-1407
> URL: https://issues.apache.org/jira/browse/THRIFT-1407
> Project: Thrift
> Issue Type: Bug
> Components: Python - Library
> Affects Versions: 0.8
> Reporter: [email protected]
> Labels: patch, python, socket, timeout
> Attachments: TSocket.py.patch
>
>
> There is a typo in thrift.transport.TSocket.TServerSocket: instead of
> "settimeout", we have "set_timeout". This causes the code to not work
> properly when we enable a global socket timeout in Python, using
> "socket.settimeout(30)". Because of the typo, the Python Thrift server will
> fail to change it's socket back to a non-timing out mode, and the listen call
> will fail after the timeout passes.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira