Merge pull request #3943 from bjovke/small_fix

Problem: The code is wrong, socket option is never set.
This commit is contained in:
Luca Boccassi 2020-05-30 21:16:52 +01:00 committed by GitHub
commit 3a2b3bc625
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -104,7 +104,7 @@ zmq::fd_t zmq::open_socket (int domain_, int type_, int protocol_)
// the race condition in making it non-inheritable later is avoided
const fd_t s =
WSASocket (domain_, type_, protocol_, NULL, 0,
WSA_FLAG_OVERLAPPED || WSA_FLAG_NO_HANDLE_INHERIT);
WSA_FLAG_OVERLAPPED | WSA_FLAG_NO_HANDLE_INHERIT);
#else
const fd_t s = socket (domain_, type_, protocol_);
#endif