remove non-block call

This is similar to b177bffa6a, 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.
This commit is contained in:
HyShai
2018-12-18 15:23:40 -05:00
committed by GitHub
parent 98f92d828a
commit 18c042d4cf

View File

@@ -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)))