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