You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Vorner wrote a really insightful post on trying out async/await with async-std, and talked about several things that didn't go well. This is a tracking issue to address all the feedback provided.
Also @vorner if you're reading along; thanks so much for the writeup! -- Posts like these are incredibly helpful, and allow us to learn where we need to improve.
But when running it, with both server and client on localhost, sometimes the experiment never finished, even with low rates of new connection creation. This seemed odd.
Still, even with rates like 100 new connections per second, some of the connections were timing out.
I didn't complain about low rates on localhost. I set the rate at which I want it to run, I was merely pointing out that even if I set a low rate, the connections were timing out (or getting stuck). My point there was it probably isn't caused by overloading something (eg. packets getting lost).
I don't know anything about TcpListener being open indefinitely. Is it something you deduced from what I wrote?
The connections timing out, I suspect they time out on the client side. I believe I switched to tokio on the client, but had the server still running with the async-std code and it worked. But I'm not 100% sure, maybe I only thought I have been keeping the async-std server around.
@stjepang Yeah, I think it's okay to close. The only part that could potentially still be an issue is:
The connections timing out, I suspect they time out on the client side.
But we haven't had any other reports, so it may indeed just have been the client side here.
@vorner thanks so much again for the article you wrote. Apologies I dropped off of this feedback issue, but the points you've raised have been incredibly useful to improve the flow of people discovering async-std for the first time!
Vorner wrote a really insightful post on trying out
async/await
withasync-std
, and talked about several things that didn't go well. This is a tracking issue to address all the feedback provided.Also @vorner if you're reading along; thanks so much for the writeup! -- Posts like these are incredibly helpful, and allow us to learn where we need to improve.
Items
TcpListener
sometimes stays open indefinitelyunstable
feature (needed forfuture::timeout
. (solved by Clean up the fs module and a few other places #190 Document feature flags in readme #202)futures_rs::select
requiresUnpin
(solved by add future::{join,try_join,select,try_select} macros #187)Quotes
Code Example
Refs
The text was updated successfully, but these errors were encountered: