The problem I have is that when server got suddenly physically
disconnected, i stuck in thrift RPC for more then minute till i receive
some exception.
Do you think that setting up delegate on  NSInputStream/NSOutputStream and
throw an exception on NSStreamEventErrorOccurred case will
resolve the problem?
I think imeout wont help me in case of big chunks of data transfer at once.
Cheers

On Sun, Jan 6, 2013 at 12:02 PM, Jake Farrell <[email protected]> wrote:

> You can set a timer and use the delegate on your NSInputStream you pass
> into init. When the NSStreamEventOpenCompleted is received you can cancel
> your timer and continue otherwise close and handle accordingly. If you
> would like to submit a patch for this please see
> http://thrift.apache.org/docs/HowToContribute/ or please file a ticket
> for it to be added
>
> -Jake
>
>
> https://developer.apple.com/library/mac/#documentation/Cocoa/Reference/NSStreamDelegate_Protocol/Reference/Reference.html
>
>
>
>   Vladimir <[email protected]>
>  January 6, 2013 1:04 PM
> Hi,
> Can anyone tell me how to customize RPC timeout on cocoa client socket
> transport side?
> Cheers
>
>

Reply via email to