[Commits] [wesnoth/wesnoth] b32570: Initial ping disconnect detection implementation.

GitHub noreply at github.com
Sun Jan 29 13:57:51 UTC 2017


  Branch: refs/heads/ping_test_disconnect_detect
  Home:   https://github.com/wesnoth/wesnoth
  Commit: b3257086987504c42475f23c861f84a2b323cdde
      https://github.com/wesnoth/wesnoth/commit/b3257086987504c42475f23c861f84a2b323cdde
  Author: David Mikos <infiniteloopcounter at gmail.com>
  Date:   2017-01-30 (Mon, 30 Jan 2017)

  Changed paths:
    M src/server/send_receive_wml_helpers.ipp
    M src/server/server.cpp
    M src/wesnothd_connection.cpp
    M src/wesnothd_connection.hpp

  Log Message:
  -----------
  Initial ping disconnect detection implementation.

This attempts to handle bug #24042 by a "heartbeat" ping timer as per boost docs http://www.boost.org/doc/libs/1_45_0/doc/html/boost_asio/example/timeouts/async_tcp_client.cpp
This hard-codes a 3 second ping with 5 times check to force a client disconnect if the server connection is interrupted in such a way that it would otherwise hang the game.





More information about the Commits mailing list