[
https://issues.apache.org/jira/browse/THRIFT-5722?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Z Yn updated THRIFT-5722:
-------------------------
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]
was:
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
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]
> 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)