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
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
..
core Change: [Network] lower TCP connect() timeout to 3s (#9112) 3 years ago
CMakeLists.txt Add: introduce CMake for project management 4 years ago
network.cpp Codechange: [Network] Do not leak os_abstraction.h via network_func 3 years ago
network.h Cleanup: Removed SVN headers 5 years ago
network_admin.cpp Codechange: differentiate between UDP, TCP and compatibility MTU values 3 years ago
network_admin.h Codechange: [Network] replace _realtime_tick with std::chrono 3 years ago
network_base.h Remove: "language" field from server/client 3 years ago
network_chat_gui.cpp Codechange: Use new widget features on chat message box. 3 years ago
network_client.cpp Feature: rework in-game Online Players GUI 3 years ago
network_client.h Cleanup: Removed SVN headers 5 years ago
network_command.cpp Codechange: rename sound ids to make more sense. (#8701) 3 years ago
network_content.cpp Change: use 32 KiB packets to send requests to the content server 3 years ago
network_content.h Codechange: [Network] replace _realtime_tick with std::chrono 3 years ago
network_content_gui.cpp Codechange: merge duplicated logic to scroll in lists by key into a single function 3 years ago
network_content_gui.h Cleanup: Removed SVN headers 5 years ago
network_func.h Codechange: [Network] Do not leak os_abstraction.h via network_func 3 years ago
network_gamelist.cpp Codechange: Replace custom linked list for GRF texts with STL vectors and strings. 4 years ago
network_gamelist.h Cleanup: Removed SVN headers 5 years ago
network_gui.cpp Codechange: [Network] Do not leak os_abstraction.h via network_func 3 years ago
network_gui.h Change: move "give money" from client-list to company window 3 years ago
network_internal.h Remove: "language" field from server/client 3 years ago
network_server.cpp Change: [Network] Remove now defunct savegame transfer packet limiter 3 years ago
network_server.h Codechange: encapsulate reading the size of a Packet 3 years ago
network_type.h Add: [Network] Validate the client name server side, so no clients with invalid names can actually join 3 years ago
network_udp.cpp Codechange: differentiate between UDP, TCP and compatibility MTU values 3 years ago
network_udp.h Change: move some things only relevant to UDP from network.cpp to network_udp.cpp 3 years ago