qpid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From astitc...@apache.org
Subject svn commit: r1480437 - /qpid/trunk/qpid/cpp/src/qpid/sys/windows/WinSocket.cpp
Date Wed, 08 May 2013 20:15:33 GMT
Author: astitcher
Date: Wed May  8 20:15:33 2013
New Revision: 1480437

URL: http://svn.apache.org/r1480437
Log:
QPID-3772: Fix Windows socket options

Modified:
    qpid/trunk/qpid/cpp/src/qpid/sys/windows/WinSocket.cpp

Modified: qpid/trunk/qpid/cpp/src/qpid/sys/windows/WinSocket.cpp
URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/cpp/src/qpid/sys/windows/WinSocket.cpp?rev=1480437&r1=1480436&r2=1480437&view=diff
==============================================================================
--- qpid/trunk/qpid/cpp/src/qpid/sys/windows/WinSocket.cpp (original)
+++ qpid/trunk/qpid/cpp/src/qpid/sys/windows/WinSocket.cpp Wed May  8 20:15:33 2013
@@ -203,7 +203,7 @@ int WinSocket::listen(const SocketAddres
 
     const SOCKET& socket = handle->fd;
     BOOL yes=1;
-    QPID_WINSOCK_CHECK(setsockopt(socket, SOL_SOCKET, SO_REUSEADDR, (char *)&yes, sizeof(yes)));
+    QPID_WINSOCK_CHECK(setsockopt(socket, SOL_SOCKET, SO_EXCLUSIVEADDRUSE, (char *)&yes,
sizeof(yes)));
 
     if (::bind(socket, getAddrInfo(addr).ai_addr, getAddrInfo(addr).ai_addrlen) == SOCKET_ERROR)
         throw Exception(QPID_MSG("Can't bind to " << addr.asString() << ": "
<< strError(WSAGetLastError())));



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org


Mime
View raw message