Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
0.18.1
-
None
-
None
Description
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