[ 
https://issues.apache.org/jira/browse/THRIFT-74?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12612776#action_12612776
 ] 

David Reiss commented on THRIFT-74:
-----------------------------------

The way we implement timeouts in the C++ TSocket is to set the socket 
nonblocking, call connect, expect an error return with errno == EINPROGRESS, 
poll(2) the socket with a timeout for writeability, and fail if the timeout 
occurs.

> Thrift::Socket.new should accept optional timeout argument
> ----------------------------------------------------------
>
>                 Key: THRIFT-74
>                 URL: https://issues.apache.org/jira/browse/THRIFT-74
>             Project: Thrift
>          Issue Type: New Feature
>          Components: Library (Ruby)
>            Reporter: Kevin Ballard
>            Priority: Minor
>         Attachments: 
> 0001-rb-Add-optional-timeout-argument-to-Thrift-Socket.patch, 
> 0001-rb-Add-optional-timeout-argument-to-Thrift-Socket.patch, 
> 0001-rb-Add-optional-timeout-argument-to-Thrift-Socket.patch
>
>
> Thrift::Socket.new should accept an optional timeout argument which will 
> raise an TransportException if no data was returned during a #read in that 
> time period.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to