-
Notifications
You must be signed in to change notification settings - Fork 115
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
Missing calls of WSAStartup in Windows #242
Comments
Hm so in theory everything is transitively initialized through libstd. All of tokio-core's types call into mio, and mio calls into net2-rs and net2-rs has a thunk which touches libstd types which should call Maybe the call is failing? Do you have sample code that could be used to reproduce locally? |
The problem is I don't have a Windows machine. This error keep showing up in AppVeyor's message.
This log shows that it was panicked in the server thread, which was forced close after the main test function was exited (test .. ok message has already been shown). So I suspect whether there is something wrong in the destruction order? |
Hm yeah I know I've seen weird stuff happen in the past where the main thread exits and there's threads still running in the process. If you deterministically join all spawned threads and ensure everything exits before the main thread does it make the errors go away? |
Well, currently it is impossible ... because the Maybe I can add a |
It shouldn't be tokio's fault. So I am closing this issue now. Hope @alexcrichton could find out why this error messages keep showing up while threads are destroyed after the main function. |
I'll note though that I'm not certain that's the cause of this, I've just seen weird behavior happen around the main thread exiting before. The actual bug here may be entirely unrelated! |
Reopening .. for later discussion. |
I have found errors in my AppVeyor build log, which is proxy with a server/client (
TcpListener
andTcpStream
).I have searched in
tokio-core
andmio
,miow
's repo forWSAStartup
, but I found nothing.Maybe we have missing some necessary initializations??
The text was updated successfully, but these errors were encountered: