Browse Source

Only define TCP_FASTOPEN if not exists

pull/1965/head
Linus Yang 6 years ago
parent
commit
ca51c60ee7
1 changed files with 2 additions and 3 deletions
  1. 5
      src/winsock.h

5
src/winsock.h

@ -78,10 +78,9 @@
// Check if ConnectEx supported in header
#ifdef WSAID_CONNECTEX
// Hardcode TCP fast open option
#ifdef TCP_FASTOPEN
#undef TCP_FASTOPEN
#endif
#ifndef TCP_FASTOPEN
#define TCP_FASTOPEN 15
#endif
// Enable TFO support
#define TCP_FASTOPEN_WINSOCK 1
#endif

Loading…
Cancel
Save