uNetworking / uSockets

Miniscule cross-platform eventing, networking & crypto for async applications
Apache License 2.0
1.27k stars 260 forks source link

closeOnBackpressureLimit on Windows #148

Open hst-m opened 3 years ago

hst-m commented 3 years ago

does not work on Windows for some reason but works on Linux, maybe something with us_socket_shutdown_read, I guess windows is not really supported because no multi-thread support so just use linux https://github.com/uNetworking/uWebSockets/issues/1194

ghost commented 3 years ago

https://docs.microsoft.com/en-us/windows/win32/api/winsock/nf-winsock-shutdown#parameters

Maybe SD_BOTH is needed on Windows