-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TcpStream times out while connecting in tokio #2
Comments
Timeout still occurs. Moving |
Non-blocking tokio version (by converting to socket2
|
It seems like enabling keepalive on async-std asynchronous socket may be implemented like that:
|
are you facing timeouts on async-std too? Also apologies I am not home so I won't be able to push changes for a few days. |
I don't use async-std, but having blocking code running in a non-blocking reactor should be avoided if possible. |
I dont see the need to fix something that doesn't need fixing. Also check: https://async.rs/blog/stop-worrying-about-blocking-the-new-async-std-runtime/ |
As you wish, but the implementation of |
I think this should be raised as a separate issue in the main stripe-rust repository. We should bring it to the attention of the maintainers, as if this is a problem, the maintainers should want it fixed in the main project repository. |
@glebpom The stripe-rust maintainers indicated that there was an issue with the original patch, IIRC. |
@glebpom Hi I have pushed your fix to the branch. Confirm it just in case and I will merge it with master. |
@rupansh this version doesn't timeout |
thanks for the help. |
async-std does not have this issue as it automatically detects blocking code and optimizes it
The text was updated successfully, but these errors were encountered: