* ecore: SO_REUSEADDR in all case.

Patch thanks to Raoul Hecky < raoul.hecky at gmail.com >


SVN revision: 56253
This commit is contained in:
Cedric BAIL 2011-01-21 09:45:38 +00:00
parent cea2587c3b
commit d2d54ecad6
1 changed files with 4 additions and 4 deletions

View File

@ -1439,12 +1439,12 @@ _ecore_con_cb_udp_listen(void *data,
(const void *)&mreq6, sizeof(mreq6)) != 0)
goto error;
}
if (setsockopt(svr->fd, SOL_SOCKET, SO_REUSEADDR, (const void *)&on,
sizeof(on)) != 0)
goto error;
}
if (setsockopt(svr->fd, SOL_SOCKET, SO_REUSEADDR, (const void *)&on,
sizeof(on)) != 0)
goto error;
if (fcntl(svr->fd, F_SETFL, O_NONBLOCK) < 0)
goto error;