Skip to content

Commit

Permalink
updates configs to add default timer wait times references zaphoyd#226
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter Thorson committed May 7, 2013
1 parent bda4cf3 commit 175cab8
Show file tree
Hide file tree
Showing 3 changed files with 60 additions and 0 deletions.
20 changes: 20 additions & 0 deletions websocketpp/config/core.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
20 changes: 20 additions & 0 deletions websocketpp/config/core_client.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
20 changes: 20 additions & 0 deletions websocketpp/config/debug.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 175cab8

Please sign in to comment.