id summary reporter owner description type status milestone component version severity resolution keywords cc 9242 I hope i can set reuseaddr property in socket initialization wangyijian chris_kohlhoff "in asio\detail\impl\socket_ops.ipp at 1.54 at line 1288. origianl: socket_type socket(int af, int type, int protocol, boost::system::error_code& ec) I Hope: socket_type socket(int af, int type, int protocol, boost::system::error_code& ec, BOOL ReuseAddr) And this is my modified code for this function: socket_type socket(int af, int type, int protocol, boost::system::error_code& ec, BOOL ReuseAddr) { clear_last_error(); #if defined(BOOST_WINDOWS) || defined(__CYGWIN__) socket_type s = error_wrapper(::WSASocket(af, type, protocol, 0, 0, WSA_FLAG_OVERLAPPED), ec); if (s == invalid_socket) return s; if (af == AF_INET6) { // Try to enable the POSIX default behaviour of having IPV6_V6ONLY set to // false. This will only succeed on Windows Vista and later versions of // Windows, where a dual-stack IPv4/v6 implementation is available. DWORD optval = 0; ::setsockopt(s, IPPROTO_IPV6, IPV6_V6ONLY, reinterpret_cast(&optval), sizeof(optval)); } // I hope add set SO_REUSEADDR if (ReuseAddr) { DWORD optval = 1; ::setsockopt(s, SOL_SOCKET, SO_REUSEADDR, reinterpret_cast(&optval), sizeof(optval)); } .... }" Support Requests closed To Be Determined asio Boost 1.54.0 Problem invalid