Peter Thorson
20cc197967
Fix a few other misc test related things
2016-01-12 10:51:59 -05:00
Gregor Jasny
89df55c577
Register tests to CTest
2016-01-05 09:51:15 +01:00
Peter Thorson
9713455e94
Fix TLS+Asio Standalone builds
2015-12-20 09:36:46 -05:00
Peter Thorson
044eda9cc4
Merge pull request #493 from jchampio/dev/cancel_socket
...
Always log errors when cancelling sockets
2015-12-19 11:52:24 -05:00
Peter Thorson
fc6ec59ab8
more travis updates
2015-12-17 08:11:23 -05:00
Peter Thorson
a01cce3b1a
travis update
2015-12-17 07:32:26 -05:00
Peter Thorson
e1b39037f7
travis config update
2015-12-17 07:30:00 -05:00
Peter Thorson
f54fb0669b
more docs
2015-12-17 07:29:51 -05:00
Peter Thorson
935c8a3264
Begin update to migrate manual content into the git repository
...
The goal here is to get all the documentation in one place including
the class reference, text based manual, tutorials, etc.
2015-12-16 10:03:14 -05:00
Peter Thorson
1e12e7aff8
use c++11 thread support on recent visual studio versions (really)
2015-12-15 19:17:11 -05:00
Peter Thorson
bda1bd14cb
use c++11 thread support on recent visual studio versions
2015-12-15 19:13:37 -05:00
Jacob Champion
5f52127cf7
Always log errors during socket cancel
...
cancel_socket_checked(), which logs any received errors, is now called
consistently instead of the lower-level cancel_socket().
2015-12-15 15:06:01 -08:00
Jacob Champion
999add0c4b
Improve socket cancellation error messages
...
log_err() includes information about the error code.
2015-12-15 15:04:41 -08:00
Jacob Champion
f7448bb1b0
Write to the error log for socket cancel failures
...
Previously an elevel entry was being written to an alog (possible
copy-paste error?).
2015-12-15 14:40:10 -08:00
Peter Thorson
ed45dcc617
Fix an issue where the wrong type of strand was being created.
2015-11-24 10:22:54 -05:00
Peter Thorson
b85affddf4
Test how some doxygen compatible markup behaves on github
2015-11-05 08:29:04 -05:00
Peter Thorson
5500aef4ce
Allow accessing the local endpoint when using the Asio transport. fixes #458
2015-11-05 06:33:15 -05:00
Peter Thorson
4e2fb75d07
Removes non-standards compliant masking behavior. fixes #469 , fixes #395
2015-10-30 09:26:28 -04:00
Peter Thorson
6a94162264
Fix error handling in debug_client fixes #473
2015-10-30 08:45:32 -04:00
Peter Thorson
536db87c53
Merge branch 'pr/468' into develop
2015-09-30 09:59:11 -04:00
Peter Thorson
39c5f3ae3d
Update changelog
2015-09-30 09:56:57 -04:00
vladon
cd4af122c0
avoid unnecessary empty strings ("") in favor of clear() and empty() (performance)
2015-09-29 21:36:41 +03:00
Peter Thorson
b6817e4c7e
Actually have the response status getters work; also tests
2015-09-19 10:54:50 -04:00
Peter Thorson
72e55a76b5
remove alias for better compatibility with older compilers
2015-09-17 10:09:28 -04:00
Peter Thorson
93b75ccc7d
Add get_status and get_response methods to connection fixes #465
2015-09-17 10:09:07 -04:00
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
54ce641d02
remove tabs
2015-08-25 09:30:00 -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
f9dbc0fd9d
Merge branch 'pr/456' into develop
2015-08-06 09:12:05 -04:00
Peter Thorson
0b2b77e4ad
update changelog
2015-08-06 09:11:50 -04:00
Eli Fidler
15c78afbf4
fix crash in strip_lws()
...
Before this fix, a malicious client could cause a websocketpp server to create an invalid std::string.
2015-08-04 12:01:14 -04:00
Peter Thorson
4b18214eda
Add preliminary support for C++11 features in Visual Studio 2015
2015-08-01 12:38:18 -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
9b09b0b481
Merge branch 'pr/449' into develop
2015-07-29 08:59:14 -04:00
Peter Thorson
ef380f7fff
Add CMake build support for examples and tests, zlib dependencies
2015-07-29 08:57:56 -04:00
Mark Grimes
1f504001d2
Use smart pointer to hold new io_service temporarily in case of errors
2015-07-29 12:36:22 +01:00
Peter Thorson
c54f2abaab
utility client build scripts
2015-07-23 07:53:51 -04:00
Peter Thorson
3580530902
Miscellaneous changes
...
- Updates code style
- Adds some tags for future exception free work
- Fix utility client build scripts
2015-07-23 07:53:31 -04:00
Thijs Wenker
bc7ad6550e
fixed typo
2015-07-16 12:18:32 +02:00
Thijs Wenker
d3fe51fa39
Added missing CMake files, organized the CMake structure between test and example directories using the global variable USE_FOLDERS
2015-07-16 12:17:59 +02:00
Thijs Wenker
7514c82c92
CMake: properly include examples and tests with macro (added unit_test_framework dependency for unit tests)
2015-07-16 11:38:38 +02:00
Peter Thorson
dabf32a668
Better std::chrono autodetection for Visual Studio
2015-06-05 08:49:07 -04:00
Peter Thorson
0d7052d2ae
Merge branch 'master' into permessage-deflate
...
Update permessage-deflate to track latest release version.
0.6.0-permessage-deflate
2015-06-03 09:21:06 -04:00
Peter Thorson
39497aaa61
reset dev branch for work on next version
2015-06-02 08:59:10 -04:00
Peter Thorson
c5510d6de0
Merge branch 'develop'
...
Conflicts:
CMakeLists.txt
Doxyfile
changelog.md
readme.md
websocketpp/version.hpp
0.6.0
2015-06-02 08:55:24 -04:00
Peter Thorson
f931734369
prep for release
2015-06-02 07:19:59 -04:00