Fix immediate connects

Apparently FreeBSD can do this while Linux can not.
This commit is contained in:
2015-07-23 10:12:22 +02:00
parent 9a340e5b8f
commit 67b67cb171
2 changed files with 4 additions and 4 deletions

View File

@@ -205,7 +205,7 @@ connector_step (struct connector *self)
connector_notify_connecting (self, target, gai_iter);
int fd = self->socket = socket (gai_iter->ai_family,
int fd = socket (gai_iter->ai_family,
gai_iter->ai_socktype, gai_iter->ai_protocol);
if (fd == -1)
{