lapin
lapin copied to clipboard
WSAStartup Error on Windows
On Windows, I'm getting the following error log when creating a connection and channel in lapin, using it to publish and receive some messages and then letting the program reach the end of main.
[2023-03-28T11:48:05Z ERROR lapin::io_loop] error doing IO error=IOError(Os { code: 10093, kind: Uncategorized, message: "Either the application has not called WSAStartup, or WSAStartup failed." })
The log seems to happen at the end of main. I suppose it has to do with stopping some threads that lapin create but I don't really know.
I don't know Windows enough to debug this sorry
I can re-produce this issue on Windows following these steps:
- consume a queue.
- send Ctrl+C to console.
Same error here. Compiled code for linux and windows. No error in Linux. In windows got:
ERROR lapin::io_loop: error doing IO error=IOError(Os { code: 10093, kind: Uncategorized, message: "Either the application has not called WSAStartup, or WSAStartup failed." })
Could you paste the exact snippet you're trying and the features you're enabling for lapin?