[
https://issues.apache.org/jira/browse/THRIFT-1371?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Michał Kowalczuk updated THRIFT-1371:
-------------------------------------
Attachment: thrift-0.7.0-poll.patch
This patch does the following:
- removes setting timeouts directly on socket
- uses non blocking socket
- uses poll() (with timeout) before recv()/send()
- removes unused TSocket::peek()
> Socket timeouts (SO_RCVTIMEO and SO_SNDTIMEO) not supported on Solaris
> ----------------------------------------------------------------------
>
> Key: THRIFT-1371
> URL: https://issues.apache.org/jira/browse/THRIFT-1371
> Project: Thrift
> Issue Type: Improvement
> Components: C++ - Library
> Affects Versions: 0.7
> Reporter: Michał Kowalczuk
> Attachments: thrift-0.7.0-poll.patch
>
>
> Solaris doesn't support setting SO_RCVTIMEO and SO_SNDTIMEO on socket using
> setsockopt(). I suggest using non-blocking socket and poll(). I've attached
> patch (generated by diff -crB) against thrift-0.7.0 that does that. The patch
> was tested in quite big production environment for more that one month and
> works well.
--
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