From: g0dil Date: Thu, 20 Mar 2008 17:23:57 +0000 (+0000) Subject: Socket: Fix reuseaddr / bind ordering X-Git-Url: http://g0dil.de/git?a=commitdiff_plain;h=9c081007177b050b6612287ef82e835297137247;p=senf.git Socket: Fix reuseaddr / bind ordering git-svn-id: https://svn.berlios.de/svnroot/repos/senf/trunk@753 270642c3-0616-0410-b53a-bc976706d245 --- diff --git a/Socket/Protocols/INet/TCPSocketHandle.cc b/Socket/Protocols/INet/TCPSocketHandle.cc index b52cf4c..39af9cf 100644 --- a/Socket/Protocols/INet/TCPSocketHandle.cc +++ b/Socket/Protocols/INet/TCPSocketHandle.cc @@ -72,8 +72,8 @@ prefix_ void senf::TCPv4SocketProtocol::init_server(INet4SocketAddress const & a const { init_server(); - serverHandle().bind(address); reuseaddr(true); + serverHandle().bind(address); if (::listen(fd(),backlog) < 0) SENF_THROW_SYSTEM_EXCEPTION(""); }