File tree Expand file tree Collapse file tree 1 file changed +0
-7
lines changed Expand file tree Collapse file tree 1 file changed +0
-7
lines changed Original file line number Diff line number Diff line change @@ -2038,20 +2038,13 @@ inline uint64_t Response::get_header_value_u64(const std::string &key,
2038
2038
2039
2039
inline void default_socket_options (socket_t sock) {
2040
2040
int opt = 1 ;
2041
- #ifdef _WIN32
2042
- setsockopt (sock, SOL_SOCKET, SO_REUSEADDR,
2043
- reinterpret_cast <const char *>(&opt), sizeof (opt));
2044
- setsockopt (sock, SOL_SOCKET, SO_EXCLUSIVEADDRUSE,
2045
- reinterpret_cast <const char *>(&opt), sizeof (opt));
2046
- #else
2047
2041
#ifdef SO_REUSEPORT
2048
2042
setsockopt (sock, SOL_SOCKET, SO_REUSEPORT,
2049
2043
reinterpret_cast <const void *>(&opt), sizeof (opt));
2050
2044
#else
2051
2045
setsockopt (sock, SOL_SOCKET, SO_REUSEADDR,
2052
2046
reinterpret_cast <const void *>(&opt), sizeof (opt));
2053
2047
#endif
2054
- #endif
2055
2048
}
2056
2049
2057
2050
inline const char *status_message (int status) {
You can’t perform that action at this time.
0 commit comments