Commit Graph

110 Commits

Author SHA1 Message Date
Dmitry Novikov
f7aeeaaa30 Using std/boost make_shared for creating shared pointers
Fixed boost::function nulling issue
2014-10-08 16:11:46 +04:00
Peter Thorson
8a7beaa86a Merge branch 'exception_refactor' into develop
Conflicts:
	changelog.md
	websocketpp/impl/connection_impl.hpp
2014-08-09 15:44:46 -05:00
Peter Thorson
7c3eb3e6c2 fix log wording 2014-05-22 21:10:57 -05:00
Peter Thorson
79c2d09200 remove debug logging from critical paths 2014-03-27 07:43:11 -05:00
Peter Thorson
b92a2b7f61 Merge branch 'master' into exception_refactor 2014-03-25 07:22:54 -05:00
Peter Thorson
cd534ad18e implements batch sending
rather than writing a single message per trip through the underlying
transport, writes are batched and sent as a group. This drastically
improves the system call / application code ratio and tcp packet
utilization rates when sending lots of small messages
2014-03-24 08:04:23 -05:00
Peter Thorson
a63f7d8b7b switch all exceptions to be of type websocketpp::exception 2014-03-06 19:35:25 -06:00
Peter Thorson
bdeb4ad680 code style and documentation 2014-03-02 21:39:34 -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
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
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
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
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
373f180638 re-classify some errors with more specific codes and more appropriate logging levels 2014-01-26 20:50:31 -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
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
b87bfc068e Allow setting pong and handshake timeouts at runtime 2013-11-03 12:40:55 -06:00
Peter Thorson
6680606523 Merge pull request #297 from evgeni/master
fix "recieve" typo in various places
2013-10-20 12:17:58 -07:00
Peter Thorson
2e3dfe7935 disable boundary checking in inner read loop 2013-10-20 12:50:10 -05:00
Evgeni Golov
86fe22334c fix "recieve" typo in various places 2013-10-20 17:19:26 +02:00
Peter Thorson
71e6babd93 statically bind frame read and write handlers 2013-10-16 08:25:10 -05:00
Peter Thorson
e16972b153 HTTP requests ending normally are no longer logged as errors. references #294 2013-10-10 13:47:01 -05:00
Peter Thorson
3d0d28affc Eliminate spurious expired timers in certain error conditions references #295 2013-10-10 13:45:49 -05:00
Peter Thorson
e6319f51a4 Updates transport code to use shared rather than raw pointers. references #293 2013-09-26 07:43:10 -05:00
Peter Thorson
d17569fa87 fixes issue where custom headers couldn't be set for client connections 2013-09-25 08:18:46 -05:00
Peter Thorson
c017331959 remove trailing whitespace 2013-07-21 07:49:15 -05:00
Peter Thorson
b866e4e0ca Refactors URI to be exception and regex free 2013-07-09 16:50:47 -05:00
Peter Thorson
8f2c4264e1 Server header/User agent adjustments & tests
Updates behavior to drop the headers if user_agent is set to the empty
string and to allow overriding the Server header from the validate
function. Updates docs and adds a number of tests
2013-07-08 18:07:33 -05:00
Peter Thorson
88fe1bfb1c Fix issue where pong timeout handler always fired 2013-06-24 14:59:19 -05:00
Peter Thorson
fd93ad89cb update documentation and code style 2013-06-16 21:08:53 -05:00
Peter Thorson
7db60e3429 fix poor server handling of double close frames fixes #259 2013-06-09 17:03:14 -05:00
Peter Thorson
3c0b8a81b0 Fix handling of spurious frames after close. Fixes #258 2013-06-09 16:41:04 -05:00
Peter Thorson
b812fd001b Change default HTTP response error code to 426
Changes default HTTP response error code when no http_handler is
defined from 500/Internal Server Error to 426/Upgrade Required
2013-06-09 16:20:53 -05:00
Peter Thorson
dd563c6647 corrects TCP close behavior references #227 fixes #25
Per RFC6455 clients prefer to wait for servers to initiate TCP close.
timers ensure that clients don't wait forever. Servers close TCP
immediately.
2013-06-09 07:36:55 -05:00
Peter Thorson
56e81cb6eb impliment close handshake timeouts references #226 2013-06-09 07:33:30 -05:00
Peter Thorson
c228f70a9f complete handshake timeout references #226 2013-06-08 18:32:23 -05:00
Peter Thorson
f35918ce6e split log_fail_result from log_close_result 2013-06-08 18:32:23 -05:00
Peter Thorson
c6381a2311 start client handshake timer 2013-06-08 18:32:22 -05:00
Peter Thorson
cff8604148 cancel handshake timers when handshake is complete 2013-06-08 18:32:22 -05:00
Peter Thorson
dfcd8a2967 set detailed error code on terminate 2013-06-08 18:32:22 -05:00
Peter Thorson
593c26f087 fix devel debug comment 2013-06-08 18:32:22 -05:00
Peter Thorson
408639a0b5 whitespace 2013-06-08 18:32:22 -05:00