dizda / fast-socks5

Fast SOCKS5 client/server implementation written in Rust async/.await (with tokio)
https://anyip.io/
MIT License
340 stars 67 forks source link

Add client config `request_timeout` #11

Closed amaury1093 closed 1 year ago

amaury1093 commented 2 years ago

I saw there's a request_timeout on the server config, that makes sense.

However, I think it can be useful to also set a client config request_timeout. So basically, if the client on is set, then take that as timeout, or else default to the server config's request_timeout.

Does that make sense to add to this lib?

dizda commented 2 years ago

Hey @amaurym,

Yes it does make sense, feel free to send a PR.

GlenDC commented 2 years ago

I'm sending a PR your wait. Defintely something that I would like to have as well.