Uploaded image for project: 'Thrift'
  1. Thrift
  2. THRIFT-5722

Thrift for Rust should support set timeout

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 0.18.1
    • None
    • Rust - Library
    • 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

      Attachments

        Activity

          People

            Unassigned Unassigned
            tdxdxoz Z Yn
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: