Closed Geobert closed 3 years ago
That's the Winsock DLL initialization function, deep below the level on which ldap3
operates. There's a mention of it in tokio-rs/tokio-core#242, aloong with some speculation about thread shutdown order. That's old code, but maybe it can help you track down the issue.
I'll keep this open for a couple of days, but I'd prefer to close it later, resolved or not, since I don't think there's anything that can be done about it in this crate; it exposes the issue, but doesn't cause it.
Thanks for your answer!
But ldap3
doesn't use tokio-core
, does it?
It doesn't, but the linked issue is the closest analogue I can find. Look at Cargo.lock
of the application: there is still the chain tokio
-> mio
-> net2
described in the issue, which calls WSAStartup
during socket creation. You could try building the application with the modified net2
, where the error result of UdpSocket::bind
would be logged.
True, and I found this: https://github.com/tokio-rs/mio/issues/1046 EDIT: and the issue was fixed by https://github.com/tokio-rs/mio/pull/1029
which removes net2
The dummy UDP socket creation has just moved to mio
: here it is.
I see, so what's happening is something bad in mio
? I've seen the error message only once for the moment, and using ldap3
in conjunction with deadpool
. And it was reported to me, I've never experienced it myself. Maybe rare.
It's probably some strange interaction of the user's environment with Winsock. Windows has gotten better in the past decade, but there are still problems which are best "solved" with one of three R's (restart/reboot/reinstall). Perhaps this is one of them. If it's reproducible, a low-level call trace ought to help.
Let's close this then, nothing you can do about it anyway, thank you very much for your expertise!
Hi,
A user of my app using
ldap3
just send me logs containing:What does it mean?