|
@ -384,14 +384,13 @@ server_recv_cb(EV_P_ ev_io *w, int revents) |
|
|
if(setsockopt(remote->fd, IPPROTO_TCP, TCP_FASTOPEN, |
|
|
if(setsockopt(remote->fd, IPPROTO_TCP, TCP_FASTOPEN, |
|
|
&optval, sizeof(optval)) != 0) { |
|
|
&optval, sizeof(optval)) != 0) { |
|
|
ERROR("setsockopt"); |
|
|
ERROR("setsockopt"); |
|
|
err = WSAEOPNOTSUPP; |
|
|
|
|
|
break; |
|
|
break; |
|
|
} |
|
|
} |
|
|
// Load ConnectEx function |
|
|
// Load ConnectEx function |
|
|
LPFN_CONNECTEX ConnectEx = winsock_getconnectex(); |
|
|
LPFN_CONNECTEX ConnectEx = winsock_getconnectex(); |
|
|
if (ConnectEx == NULL) { |
|
|
if (ConnectEx == NULL) { |
|
|
LOGE("Cannot load ConnectEx() function"); |
|
|
LOGE("Cannot load ConnectEx() function"); |
|
|
err = WSAEOPNOTSUPP; |
|
|
|
|
|
|
|
|
err = WSAENOPROTOOPT; |
|
|
break; |
|
|
break; |
|
|
} |
|
|
} |
|
|
// ConnectEx requires a bound socket |
|
|
// ConnectEx requires a bound socket |
|
|