connections fail, in that case we print a hint that this is
happening with the error in the logs.
+2 December 2020: Wouter
+ - Fix #360: for the additionally reported TCP Fast Open makes TCP
+ connections fail, in that case we print a hint that this is
+ happening with the error in the logs.
+
1 December 2020: Wouter
- Fix #358: Squelch udp connect 'no route to host' errors on low
verbosity.
if(errno == ECONNRESET && verbosity < 2)
return 0; /* silence reset by peer */
#endif
+#ifdef ENOTCONN
+ if(errno == ENOTCONN) {
+ log_err_addr("read (in tcp s) failed and this could be because TCP Fast Open is enabled [--disable-tfo-client --disable-tfo-server] but does not work", sock_strerror(errno),
+ &c->repinfo.addr, c->repinfo.addrlen);
+ return 0;
+ }
+#endif
#else /* USE_WINSOCK */
if(WSAGetLastError() == WSAECONNRESET)
return 0;