-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Upgrade async-std to 1.6.1 #1612
Conversation
Have the failures related to #1588 been addressed? |
@mxinden I'm not familiar with the issues encountered earlier in #1588. In fact, I hadn't seen that issue until now. My primary goal was to reconcile dependency versions of If I understand correctly, the original issue was that CI broke with the update of |
After re-reading #1588, I see the problem is with the Noise protocol smoke test, which I'll attempt to resolve here. |
@mxinden Tests are passing with While including |
It would be very unsettling if @stjepang @dignifiedquire Sorry to ping you here, but could I ask you if it is an expected behaviour that sockets don't work if you don't use |
@tomaka @secretfader when you are saying you are not using the runtime, are you manually polling the sockets, or how exactly is the setup you are expecting to work? |
The goal is to have them work, when polling manually, independent of the runtime that is polling them. The current situation for TcpStream::connect is the following
Because I did not realize this behaviour had chaneged, and it was not my intention to bind the sockets to the runtime in this way. I am considering this a bug in the 1.6 releases, and effectively for the cases it is happening in 1.5 too. I am sorry for the troubles this is causing. |
After speaking @stjepang I realized my analysis above was wrong. We need to ensure that the reactor is running when creating sockets, which is simply in bug in async-std atm. Going to attempt a fix and see if I can get libp2ps test working out of the box |
Good news, I have a working fix for async-std, which I will be publishing once CI and review are done. This will allow you to upgrade without any other changes to the tests, as it was intended. |
Ref #1612 Co-authored-by: Pierre Krieger <pierre.krieger1708@gmail.com> Co-authored-by: Roman Borschel <romanb@users.noreply.github.com>
Resolves #1588, and allows
libp2p
to be used in projects that rely on the latest version ofasync-std
.