From 175cab8d22fe7cd2527141061db6e5ed762610d6 Mon Sep 17 00:00:00 2001 From: Peter Thorson Date: Tue, 7 May 2013 17:46:41 -0500 Subject: [PATCH] updates configs to add default timer wait times references #226 --- websocketpp/config/core.hpp | 20 ++++++++++++++++++++ websocketpp/config/core_client.hpp | 20 ++++++++++++++++++++ websocketpp/config/debug.hpp | 20 ++++++++++++++++++++ 3 files changed, 60 insertions(+) diff --git a/websocketpp/config/core.hpp b/websocketpp/config/core.hpp index eacee08f8a..6450e7d2f7 100644 --- a/websocketpp/config/core.hpp +++ b/websocketpp/config/core.hpp @@ -97,6 +97,17 @@ struct core { typedef type::alog_type alog_type; typedef type::request_type request_type; typedef type::response_type response_type; + + /// Default timer values (in ms) + + /// Length of time to wait before a proxy handshake is aborted + static const long timeout_proxy = 5000; + /// Length of time to wait before a tls handshake is aborted + static const long timeout_tls_handshake = 5000; + /// Length of time to wait for dns resolution + static const long timeout_dns_resolve = 5000; + /// Length of time to wait for socket shutdown + static const long timeout_socket_shutdown = 5000; }; /// Transport Endpoint Component @@ -108,6 +119,15 @@ struct core { /// User overridable Connection base class typedef websocketpp::connection_base connection_base; + /// Default timer values (in ms) + + /// Length of time before an opening handshake is aborted + static const long timeout_open_handshake = 5000; + /// Length of time before a closing handshake is aborted + static const long timeout_close_handshake = 5000; + /// Length of time to wait for a pong after a ping + static const long timeout_pong = 5000; + /// WebSocket Protocol version to use as a client /** * What version of the WebSocket Protocol to use for outgoing client diff --git a/websocketpp/config/core_client.hpp b/websocketpp/config/core_client.hpp index 653167bb02..0d032502fb 100644 --- a/websocketpp/config/core_client.hpp +++ b/websocketpp/config/core_client.hpp @@ -96,6 +96,17 @@ struct core_client { typedef type::alog_type alog_type; typedef type::request_type request_type; typedef type::response_type response_type; + + /// Default timer values (in ms) + + /// Length of time to wait before a proxy handshake is aborted + static const long timeout_proxy = 5000; + /// Length of time to wait before a tls handshake is aborted + static const long timeout_tls_handshake = 5000; + /// Length of time to wait for dns resolution + static const long timeout_dns_resolve = 5000; + /// Length of time to wait for socket shutdown + static const long timeout_socket_shutdown = 5000; }; /// Transport Endpoint Component @@ -107,6 +118,15 @@ struct core_client { /// User overridable Connection base class typedef websocketpp::connection_base connection_base; + /// Default timer values (in ms) + + /// Length of time before an opening handshake is aborted + static const long timeout_open_handshake = 5000; + /// Length of time before a closing handshake is aborted + static const long timeout_close_handshake = 5000; + /// Length of time to wait for a pong after a ping + static const long timeout_pong = 5000; + /// WebSocket Protocol version to use as a client /** * What version of the WebSocket Protocol to use for outgoing client diff --git a/websocketpp/config/debug.hpp b/websocketpp/config/debug.hpp index 51b2ecbd85..eb3a11e7dc 100644 --- a/websocketpp/config/debug.hpp +++ b/websocketpp/config/debug.hpp @@ -97,6 +97,17 @@ struct debug_core { typedef type::alog_type alog_type; typedef type::request_type request_type; typedef type::response_type response_type; + + /// Default timer values (in ms) + + /// Length of time to wait before a proxy handshake is aborted + static const long timeout_proxy = 5000; + /// Length of time to wait before a tls handshake is aborted + static const long timeout_tls_handshake = 5000; + /// Length of time to wait for dns resolution + static const long timeout_dns_resolve = 5000; + /// Length of time to wait for socket shutdown + static const long timeout_socket_shutdown = 5000; }; /// Transport Endpoint Component @@ -108,6 +119,15 @@ struct debug_core { /// User overridable Connection base class typedef websocketpp::connection_base connection_base; + /// Default timer values (in ms) + + /// Length of time before an opening handshake is aborted + static const long timeout_open_handshake = 5000; + /// Length of time before a closing handshake is aborted + static const long timeout_close_handshake = 5000; + /// Length of time to wait for a pong after a ping + static const long timeout_pong = 5000; + /// WebSocket Protocol version to use as a client /** * What version of the WebSocket Protocol to use for outgoing client