lapin icon indicating copy to clipboard operation
lapin copied to clipboard

WSAStartup Error on Windows

Open Victor-N-Suadicani opened this issue 1 year ago • 4 comments

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.

Victor-N-Suadicani avatar Mar 28 '23 11:03 Victor-N-Suadicani

I don't know Windows enough to debug this sorry

Keruspe avatar May 19 '23 19:05 Keruspe

I can re-produce this issue on Windows following these steps:

  1. consume a queue.
  2. send Ctrl+C to console.

图片

gy0801151351 avatar Mar 09 '24 02:03 gy0801151351

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." })

egargale avatar Mar 14 '24 14:03 egargale

Could you paste the exact snippet you're trying and the features you're enabling for lapin?

Keruspe avatar Jul 11 '24 04:07 Keruspe