Peter Thorson
bdeb4ad680
code style and documentation
2014-03-02 21:39:34 -06:00
Peter Thorson
5f56976290
Add method to look up a human readable string given a close code value
2014-03-02 12:19:50 -06:00
Peter Thorson
86325b1838
cleans up the handling of TLS related transport errors
...
Specifically: TLS short read is separated from other TLS errors. Other
TLS errors are also not separated from generic “pass through” errors.
TLS short read is now considered “expected” during socket shutdown and
is not reported as an error.
2014-02-28 09:02:26 -06:00
Peter Thorson
2d2312a1d7
add socket/security policies to translate asio -> websocketpp error codes
...
The reason these were added to the socket policies rather than higher
up is that in some cases translating error codes requires information
from headers and libraries that are not present except when certain
socket policies are being used. For example, SSL/TLS related errors can
only be translated using openssl, which is only pulled in with the TLS
socket policy.
2014-02-28 09:00:45 -06:00
Peter Thorson
afc28be004
whitespace
2014-02-28 08:27:29 -06:00
Peter Thorson
b7c5a2e791
tls short read in state closed is no longer an error
2014-02-28 08:27:14 -06:00
Peter Thorson
d36925ce7d
Add new generic TLS error code
2014-02-28 08:26:50 -06:00
Peter Thorson
713a05679c
Merge pull request #325 from zaphoyd/max-message-size
...
error handling changes that ended up on wrong branch
2014-02-18 07:59:20 -06:00
Peter Thorson
0fecf023ef
refactor connection error handling code
2014-02-18 08:01:16 -06:00
Peter Thorson
ffdf5f842b
reclassify action after shutdown as info rather than fatal references #62
2014-02-18 07:59:43 -06:00
Peter Thorson
d425caea80
Fix misclassified error log entry
2014-02-18 07:58:49 -06:00
Peter Thorson
ce2c1d6e34
whitespace
2014-02-13 11:18:44 -06:00
Peter Thorson
7ceeaa4f9c
fix documentation spelling error
2014-02-13 11:10:47 -06:00
Peter Thorson
883410bb77
Fix an issue where custom timeout values weren't being propagated from endpoints to new connections
2014-02-12 15:07:09 -06:00
Peter Thorson
180543b9e6
Adds the ability to specify a maximum message size
2014-02-10 09:21:07 -06:00
Peter Thorson
7c08cae15b
fix bug that caused all error close frames to have a blank code
2014-02-10 09:17:43 -06:00
Peter Thorson
81e0c44b34
update debug config with max_message_size constant
2014-02-10 09:16:47 -06:00
Peter Thorson
722a67a910
add message payload size reservation
2014-02-10 08:39:20 -06:00
Peter Thorson
ba6320ba1c
Add maximum message size functionality to processors
2014-02-10 08:38:54 -06:00
Peter Thorson
d9aa498310
whitespace cleanup
2014-02-10 08:37:47 -06:00
Peter Thorson
ba90910f6e
Fix an issue where set_open_handshake_timeout was ignored for servers
2014-02-05 21:00:30 -06:00
Peter Thorson
bee2c03aa0
code style updates
2014-02-05 20:56:54 -06:00
Peter Thorson
8e86ddcf5a
fix typos in comments
2014-02-02 19:28:23 -06:00
Peter Thorson
fe85de763e
Adds configurable SO_REUSEADDR option. references #311
2014-02-02 18:12:30 -06:00
Peter Thorson
ca97dd1fb8
Switch to c-based tolower rather than c++ to avoid confusing Visual Studio references #287
2014-02-02 17:04:50 -06:00
Peter Thorson
c7ec97795a
add C++11 nullptr support detection
2014-02-02 17:03:41 -06:00
Peter Thorson
6ee7c368bb
remove unused variables
2014-02-02 15:14:12 -06:00
Peter Thorson
2000746be7
correct misc minor warnings
2014-02-02 15:12:42 -06:00
Peter Thorson
c84cc110aa
Corrects more obscure shadowed variable cases 2
2014-02-02 13:17:17 -06:00
Peter Thorson
09940a5c0b
Corrects more obscure shadowed variables cases
2014-02-02 13:12:52 -06:00
Peter Thorson
bb21e3cf95
Fix use of variable names that shadow function parameters. references #318
2014-02-02 11:10:39 -06:00
Peter Thorson
5f3b92c9e4
Fix compile time conflict with Visual Studio's MIN/MAX macros.
2014-02-02 10:58:02 -06:00
Peter Thorson
bb431ee0d2
Fix a crash following use of the stop_listening function.
2014-01-26 20:53:17 -06:00
Peter Thorson
373f180638
re-classify some errors with more specific codes and more appropriate logging levels
2014-01-26 20:50:31 -06:00
Peter Thorson
021ac0599c
add additional error codes
2014-01-26 20:49:20 -06:00
Peter Thorson
e44463583b
Fix a crash when parsing empty HTTP headers
2014-01-26 19:39:55 -06:00
Peter Thorson
4393a2562b
Add the ability to pause reading on a connection
2014-01-25 18:46:44 -06:00
Peter Thorson
8f359e6d35
typo
2013-12-14 09:37:16 -06:00
Peter Thorson
ebb65c81e2
Allow disabling open, close, and pong timers entirely
...
Set their duration to zero to do this
2013-12-14 09:31:58 -06:00
Peter Thorson
c2f2cb951b
Fixes some calls to empty lib::functions, references #310
2013-12-10 22:02:22 -06:00
Peter Thorson
827f3678bb
Fixes a leak of connection objects when using asio transport references #310
2013-11-26 22:05:26 -06:00
Peter Thorson
18036d2b01
sets mutex to mutable to allow use in const accessors references #292
2013-11-05 07:52:31 -06:00
Peter Thorson
17bd89bd80
code style
2013-11-05 07:50:20 -06:00
Peter Thorson
06cdf43dcf
Add start_perpetual and stop_perpetual to asio transport
...
These may be used to replace manually managed `asio::io_service::work`
objects
2013-11-04 16:50:35 -06:00
Peter Thorson
f8f945433f
code style
2013-11-04 07:40:11 -06:00
Peter Thorson
a4f96cf0c3
groundwork for unclean close options
2013-11-04 07:40:06 -06:00
Peter Thorson
7032e6940f
adds tcp pre and post init setting functionality to endpoint
2013-11-03 13:32:17 -06:00
Peter Thorson
bfd50e1ee1
locks and spacing
2013-11-03 13:25:21 -06:00
Peter Thorson
b87bfc068e
Allow setting pong and handshake timeouts at runtime
2013-11-03 12:40:55 -06:00
Peter Thorson
a1872c3790
Merge branch 'master' of https://github.com/zaphoyd/websocketpp
...
Conflicts:
changelog.md
2013-11-02 19:34:01 -05:00