Peter Thorson
3e8dbf767d
Add example demonstrating external io_service
2015-09-17 08:11:48 -04:00
Peter Thorson
3c77ce3cc7
Fix race condition resulting in corruption of responses sent from non-blocking HTTP handers
...
The HTTP request processing code was expecting that the http response
state would be `deferred` after a call to an HTTP handler that deferred
the response. If, in addition to deferring, you also sent the response
the HTTP state advanced past `deferred` to `response_written`. This
doesn't easily show up in unit tests because the bug requires that the
async write still be in flight and the connection still be open when
the HTTP handler returns.
An asynchronous network transport (like Asio) combined with a
sufficiently large message that Asio yields control back to WebSocket++
before the response is fully written will trigger a second write on the
same connection while the first is in flight. This is not allowed per
the Asio spec and results in undefined behavior.
The HTTP request processing code now checks if the http state is init,
i.e. not deferred and no response has been started rather than just if
it was deferred.
2015-09-09 10:14:37 -04:00
Peter Thorson
e0bd3f7e95
Address an issue where an exception could be thrown when a socket gets canceled on Windows XP #460
...
This fix switches to using the non-exception variant of socket::cancel
and logging the error instead of throwing it. There is a chance that
something else will need to be addressed as a result of this change as
some async operations might not be cancelled? I believe everything in
question has timeouts that will trigger operation cancellation at some
point anyways.
2015-08-25 09:03:00 -04:00
Peter Thorson
fb829e0895
Misc changes related to translation of asio transport errors #448
2015-08-20 10:14:55 -04:00
Peter Thorson
0b2b77e4ad
update changelog
2015-08-06 09:11:50 -04:00
Peter Thorson
e80673278f
Merge branch 'pr/454' into develop
2015-07-29 09:29:37 -04:00
Peter Thorson
95551e7e94
code style & change log update for PR
2015-07-29 09:28:22 -04:00
Peter Thorson
22918a3992
Merge branch 'permessage-deflate' into develop
...
Conflicts:
Doxyfile
examples/utility_client/CMakeLists.txt
websocketpp/version.hpp
2015-07-29 09:12:21 -04:00
Peter Thorson
ef380f7fff
Add CMake build support for examples and tests, zlib dependencies
2015-07-29 08:57:56 -04:00
Peter Thorson
dabf32a668
Better std::chrono autodetection for Visual Studio
2015-06-05 08:49:07 -04:00
Peter Thorson
f931734369
prep for release
2015-06-02 07:19:59 -04:00
Peter Thorson
af792aeaba
Update changelog
2015-06-02 07:02:48 -04:00
Peter Thorson
8893faff53
Removes an unnecessary mutex lock in get_con_from_hdl
2015-05-10 21:36:19 -04:00
Peter Thorson
c18f210ea3
Allow deferring the sending of an HTTP response. references #425
...
This allows processing of long running http handlers to defer their
response until it is ready without blocking the network thread.
2015-04-29 19:28:36 -04:00
Peter Thorson
f469b90bfc
update changelog credit
2015-04-29 19:24:04 -04:00
Peter Thorson
9d95501536
changelog update
2015-04-25 13:32:33 -04:00
Peter Thorson
b817c4499e
Updates echo_server_tls reference TLS settings
2015-04-25 12:28:28 -04:00
Peter Thorson
7829de34a3
Update changelog
2015-04-25 12:26:16 -04:00
Peter Thorson
769fe89533
Major refactor to support standalone Asio and remove Boost dependencies
...
It is now possible to use WebSocket++’s asio transport using only
standalone asio by defining ASIO_STANDALONE before including any
WebSocket++ headers.
2015-04-25 07:17:28 -04:00
Peter Thorson
45dfcbec3c
changelog update
2015-03-04 18:43:49 -06:00
Peter Thorson
bcd82bd6f4
asio transport clients will now connect properly to servers using TLS SNI
2015-02-23 09:10:23 -05:00
Peter Thorson
650e4c336b
Prepare version 0.5.0 for submission
2015-01-22 09:56:20 -05:00
Peter Thorson
31c761a0a9
Endpoints are now reset after listen failure. fixes #390
2015-01-22 08:20:13 -05:00
Peter Thorson
681c2331a1
Fixes out of scope pointer returned from websocketpp::exception::what(); fixes #397
...
Also adds unit tests for exception construction
2015-01-22 07:33:14 -05:00
Peter Thorson
d4e15c89ad
update changelog
2015-01-14 06:18:56 -06:00
Peter Thorson
1517d646f9
update changelog, remove unused parameters
2014-12-16 07:05:47 -05:00
Peter Thorson
ef393f8aef
Overhaul error handling for failed WebSocket and HTTP connections
2014-12-12 18:31:21 -05:00
Peter Thorson
1f061a920e
Changelog update
2014-12-12 06:59:53 -05:00
Peter Thorson
987f20feda
typos and fixes for stub config and minimal config
2014-12-10 21:28:18 -05:00
Peter Thorson
cbe887524e
Documentation and code style for syslog logger references #386
2014-12-05 10:10:44 -05:00
Peter Thorson
18994f7318
Add write_handler to iostream as an ostream replacement
2014-12-04 09:12:57 -05:00
Peter Thorson
3f65b2ff98
changelog update
2014-12-04 08:19:16 -05:00
Peter Thorson
f6c6552622
Access to HTTP request bodies references #181
...
Use connection::get_request_body() to access. Use
endpoint::set_max_http_body_size(size_t value) to control maximum
upload size. Initial support is for single chunk bodies that define a
content-length . Transfer-Encoding: chunked is not currently supported
2014-11-18 22:05:46 -05:00
Peter Thorson
02b53d979e
changelog update
2014-11-18 08:11:52 -05:00
Peter Thorson
c0dc3c0e5f
add documentation, fix STL includes, remove deprecated HTTP parser methods
2014-11-18 07:25:45 -05:00
Peter Thorson
088625eb53
changelog typo
2014-11-15 12:55:53 -05:00
Peter Thorson
02dd5150fc
Chapter 6 (sending/receiving message) of utility_client tutorial
2014-11-15 11:22:08 -05:00
Peter Thorson
fbc2966cda
Frame payload logging now prints text messages as text rather than binary
2014-11-14 09:31:53 -05:00
Peter Thorson
5fe6f8338d
Disable SSLv3 in example servers
2014-11-04 12:26:07 -05:00
Peter Thorson
4100fc3ce7
normalize copyright dates and prep release version
2014-11-04 07:31:24 -05:00
Peter Thorson
b3b20ebb04
fix for non-threadsafe use of localtime fixes #347
2014-11-03 09:51:02 -05:00
Peter Thorson
e1a0401d25
fixes guard macro for use of std::put_time
...
std::put_time is in the c++11 iomanip header not chrono
2014-11-02 19:12:16 -05:00
Peter Thorson
9807283a6b
Update sha1::calc length parameter to more sane type references #358
...
also cleans up formatting and code style and adds documentation
2014-10-14 22:17:57 -04:00
Peter Thorson
83a66f4e3f
Update base64_encode length parameter to more sane type references #358
...
Also adds documentation and cleans up formatting
2014-10-14 08:28:26 -04:00
Peter Thorson
2e7a902ef7
prefix htonll/ntohll fixes #381 fixes #382 references #358
...
This avoids conflicts with OS level macros
2014-10-14 08:08:30 -04:00
Peter Thorson
0e66dbfde4
lots of cleanup of unused code & parameters references #376
2014-10-07 10:11:37 -04:00
Peter Thorson
71a10d83c8
Merge core requirements feature branch
2014-08-09 16:18:00 -05: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
122d4e2128
Reduce conflict between std::min and macros
...
Adjust usage of std::min to be more compatible with systems that define
a min(...) macro
2014-08-09 15:36:10 -05:00
Peter Thorson
e203dbed45
package for 0.3.0 release
2014-08-09 14:06:22 -05:00