deno
10034ca7 - fix: Windows reusePort and named pipe error mapping

Commit
216 days ago
fix: Windows reusePort and named pipe error mapping Two Windows-specific fixes: 1. Map ERROR_PIPE_BUSY (231) to UV_EADDRINUSE instead of UV_EACCES. Rust std maps this Windows error to PermissionDenied, but it means the named pipe is already in use -- matching Node.js/libuv behavior. 2. Skip SO_EXCLUSIVEADDRUSE when reusePort is requested, and set SO_REUSEADDR instead. On Windows, SO_REUSEADDR allows multiple sockets to bind to the same port (the equivalent of SO_REUSEPORT on Unix). Previously SO_EXCLUSIVEADDRUSE was set unconditionally, making reusePort impossible on Windows.
Author
Parents
Loading