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

Nick commented on THRIFT-5722:
------------------------------

I came here to post about being able to configure timeouts, graceful shutdown, 
etc.. This issue is fitting.

I'll see how I go with `TTcpChannel`, but it would be nice if these things were 
configurable when creating a `TServer`, and like you say, configurable per 
procedure.

> Thrift for Rust should support set timeout
> ------------------------------------------
>
>                 Key: THRIFT-5722
>                 URL: https://issues.apache.org/jira/browse/THRIFT-5722
>             Project: Thrift
>          Issue Type: Bug
>          Components: Rust - Library
>    Affects Versions: 0.18.1
>            Reporter: Z Yn
>            Priority: Major
>
> There is no easy way to set timeout in Rust Client. User can only create a 
> TcpStreamand and set timeout as first, then build TTcpChannel from this 
> TcpStream.
> [https://docs.rs/thrift/0.17.0/thrift/transport/struct.TTcpChannel.html#method.with_stream]
> Also, It's impossible to set different read/write timeout for each function.
>  
> TimedOut error kind exits. It comes from std::io::ErrorKind::TimedOut
> [https://docs.rs/thrift/0.17.0/src/thrift/errors.rs.html#361-376]



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to