You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
OpenTTD-patches/src/network/core
Patric Stout 8fa53f543a
Change: [Network] lower TCP connect() timeout to 3s (#9112)
Currently we use default OS timeout for TCP connections, which
is around 30s. 99% of the users will never notice this, but there
are a few cases where this is an issue:

- If you have a broken IPv6 connection, using Content Service is
  first tried over IPv6. Only after 30s it times out and tries
  IPv4. Nobody is waiting for that 30s.
- Upcoming STUN support has several methods of establishing a
  connection between client and server. This requires feedback
  from connect() to know if any method worked (they have to be
  tried one by one). With 30s, this would take a very long time.

What is good to mention, is that there is no good value here. Any
value will have edge-cases where the experience is suboptimal. But
with 3s we support most of the stable connections, and if it fails,
the user can just retry. On the other side of the spectrum, with 30s,
it means the user has no possibility to use the service. So worst case
we annoy a few users with them having the retry vs annoying a few
users which have no means of resolving the situation.
3 years ago
..
CMakeLists.txt Codechange: [Network] Do not leak os_abstraction.h via fios.h 3 years ago
address.cpp Change: [Network] lower TCP connect() timeout to 3s (#9112) 3 years ago
address.h Fix: Thread unsafe use of NetworkAddress::GetAddressAsString 4 years ago
config.h Change: use 32 KiB packets to transfer the savegame 3 years ago
core.cpp Fix: [Network] errno and strerror do not handle network errors on Windows 3 years ago
core.h Cleanup: Removed SVN headers 5 years ago
game.h Remove: "language" field from server/client 3 years ago
host.cpp Cleanup: Removed SVN headers 5 years ago
host.h Cleanup: Removed SVN headers 5 years ago
os_abstraction.h Change: [Network] lower TCP connect() timeout to 3s (#9112) 3 years ago
packet.cpp Fix 8a95fee4: Missing initialiser in Packet constructor 3 years ago
packet.h Codechange: differentiate between UDP, TCP and compatibility MTU values 3 years ago
tcp.cpp Change: [Network] Use string error messages instead of numeric error numbers that need to be looked up 3 years ago
tcp.h Fix: Racy use of flags in TCPConnecter::CheckCallbacks 4 years ago
tcp_admin.cpp Codechange: Replace assert_compile macro with static_assert 3 years ago
tcp_admin.h Doc: server name doesn't need to be advertised to be valid 3 years ago
tcp_connect.cpp Fix: Racy use of flags in TCPConnecter::CheckCallbacks 4 years ago
tcp_content.cpp Cleanup: remove #ifdefs for compiling the old content server 3 years ago
tcp_content.h Cleanup: remove #ifdefs for compiling the old content server 3 years ago
tcp_content_type.h Cleanup: remove #ifdefs for compiling the old content server 3 years ago
tcp_game.cpp Codechange: [Network] replace _realtime_tick with std::chrono 3 years ago
tcp_game.h Codechange: [Network] replace _realtime_tick with std::chrono 3 years ago
tcp_http.cpp Change: [Network] Use string error messages instead of numeric error numbers that need to be looked up 3 years ago
tcp_http.h Cleanup: Removed SVN headers 5 years ago
tcp_listen.h Change: [Network] Use string error messages instead of numeric error numbers that need to be looked up 3 years ago
udp.cpp Change: [Network] Use string error messages instead of numeric error numbers that need to be looked up 3 years ago
udp.h Cleanup: Removed SVN headers 5 years ago