Unverified Commit 18c042d4 authored by HyShai's avatar HyShai Committed by GitHub

remove non-block call

This is similar to https://github.com/MusicPlayerDaemon/MPD/commit/b177bffa6a5f1b69639b6cd759dcb16fdd76e5e2, in that it fixes the Windows issue of connecting to the open socket. Also, the listen_socket is set to AcceptNonBlock after the connection anyways.
parent 98f92d82
......@@ -102,7 +102,7 @@ PoorSocketPair(int fd[2])
assert (fd != nullptr);
UniqueSocketDescriptor listen_socket;
if (!listen_socket.CreateNonBlock(AF_INET, SOCK_STREAM, IPPROTO_TCP))
if (!listen_socket.Create(AF_INET, SOCK_STREAM, IPPROTO_TCP))
throw MakeSocketError("Failed to create socket");
if (!listen_socket.Bind(IPv4Address(IPv4Address::Loopback(), 0)))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment