Takatoshi Kondo
296f61b595
Added a semicolon.
2014-07-08 17:15:19 +09:00
Peter Thorson
65cc3765a8
add docs for namespaces and concurrency policies
2014-05-30 16:02:07 -05:00
Peter Thorson
10be5eee14
clarified documentation for bad_connection error
2014-05-30 16:02:07 -05:00
Peter Thorson
c39777e4c1
add documentation for socket policies
2014-05-30 16:02:06 -05:00
Peter Thorson
af7149ae0a
Adds read_all method to iostream transport
...
Adds `connection::read_all(...)` method to iostream transport as a
convenience method for reading all data into the connection buffer
without the end user needing to manually loop on `read_some`.
2014-05-22 21:10:58 -05:00
Peter Thorson
7c3eb3e6c2
fix log wording
2014-05-22 21:10:57 -05:00
Peter Thorson
e7ce038207
remove unused file
2014-04-10 10:53:41 -05:00
Peter Thorson
aaed2c4950
fix whitespace
2014-04-10 10:20:26 -05:00
Peter Thorson
64fffeda9f
Add combination plain+TLS echo example
2014-04-10 10:19:30 -05:00
Peter Thorson
7137105a81
documentation updates
2014-04-02 11:57:04 -05:00
Peter Thorson
beaa6e98cc
testee server defaults changes
2014-03-27 07:43:36 -05:00
Peter Thorson
79c2d09200
remove debug logging from critical paths
2014-03-27 07:43:11 -05:00
Peter Thorson
002d2d0007
force the offset to be calculated first to avoid confusing MSVC's checked iterators references #342
...
Thank you tmoers for reporting
2014-03-25 06:15:40 -05:00
Peter Thorson
d8b7cf3fdc
Merge pull request #343 from zaphoyd/batched_send
...
Batched send
2014-03-25 06:03:23 -05:00
Peter Thorson
b358e2cfe8
update changelog
2014-03-25 05:49:15 -05:00
Peter Thorson
099fdbd4f1
Merge branch 'master' into batched_send
2014-03-25 05:46:12 -05:00
Peter Thorson
19a3713b29
use libc++ for non-c++11 branches on mac os x
2014-03-24 08:07:40 -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
e2b7a4b9f1
fix whitespace
2014-03-16 09:59:34 -05:00
Peter Thorson
e154d955ec
Use __cplusplus header to enable C++11 language features
2014-03-16 09:26:51 -05:00
Peter Thorson
2207348abb
Merge pull request #340 from dschmidt/master
...
Use _WIN32 instead of WIN32 preprocessor directive
2014-03-16 09:09:14 -05:00
Dominik Schmidt
77495d4076
Use _WIN32 instead of WIN32 preprocessor directive and fix warnings
2014-03-14 17:42:05 +01:00
Peter Thorson
8752687bc8
Merge pull request #339 from jefferai/master
...
Add define to allow disabling threading entirely
2014-03-12 13:15:24 -05:00
Jeff Mitchell
0f3a36a630
Add define to allow disabling threading entirely, for when using an
...
iostream-based client.
2014-03-12 10:46:33 -04:00
Peter Thorson
edb26d7721
listen errors are now reported to the caller
2014-03-06 19:01:11 -06:00
Peter Thorson
b2d698d3ca
include hdl in message actions
...
This is not strictly necessary for the broadcast server example. As
this example is commonly used as a starting point for new programs the
lack of hdl on message action is a source of surprising behavior.
2014-03-06 11:59:38 -06:00
Peter Thorson
9d8eced9a1
Refactored server_endpoint to allow end users to access start_accept error states references #335
...
also more documentation
2014-03-05 08:06:14 -06:00
Peter Thorson
fd0c62a8e4
add TLS config and types to asio integration tests
2014-03-05 07:27:41 -06:00
Peter Thorson
1a68f4b907
Merge pull request #335 from aydany/master
...
Require a valid con before calling terminate
2014-03-05 07:23:19 -06:00
Aydan Yumerefendi
c3dfb25181
Merge remote-tracking branch 'upstream/master'
...
Conflicts:
websocketpp/roles/server_endpoint.hpp
2014-03-04 21:19:24 -05:00
Aydan Yumerefendi
5a5d8321bd
Require a valid con before calling terminate
...
If get_connection returns null, e.g., if during stop the tls_init
handler is removed from the server, con->terminate will cause a crash.
2014-03-04 21:02:42 -05:00
Peter Thorson
b805689f9c
whitespace and don't accept if we know the transport isn't listening references #334
2014-03-04 06:45:00 -06:00
Peter Thorson
7eedf25500
Merge pull request #334 from aydany/master
...
Avoid leak when stopping server
2014-03-04 06:18:34 -06:00
Aydan Yumerefendi
3ca53d0064
Avoid leak when stopping server
...
If accept fails, e.g., because the server is no longer listening the
connection object is not terminated and it results in a memory leak:
connection -> handler -> connection.
2014-03-03 21:51:56 -05:00
Peter Thorson
5e2fadd826
pass better information about TLS handshake failures
2014-03-03 17:09:55 -06:00
Peter Thorson
840bb6b59e
code style and whitespace
2014-03-03 10:32:04 -06:00
Peter Thorson
fe00a84f7b
Merge pull request #333 from aydany/master
...
Fix memory leak when init_asio fails
2014-03-03 10:24:11 -06:00
Aydan Yumerefendi
337bf2fb0a
Fix memory leak on create
...
If the socket fails to initialize, e.g., by omitting the tis init
handler, the connection is leaked, since there is a circular reference
between the connection and its async_read/async_write handlers. To fix
this, check the error code, and reset the handler is an error has
occurred.
2014-03-03 11:08:24 -05:00
Peter Thorson
c5b5492e5c
fix memory leak when a connection fails references #323
2014-03-02 22:12:38 -06:00
Peter Thorson
af15537205
add debug header to integration tests
2014-03-02 22:12:14 -06:00
Peter Thorson
bdeb4ad680
code style and documentation
2014-03-02 21:39:34 -06:00
Peter Thorson
faad2ec854
add copyright info to debug client
2014-03-02 19:43:25 -06:00
Peter Thorson
dc06049df9
add debug server example
2014-03-02 19:43:11 -06:00
Peter Thorson
3e53c74c3f
Merge pull request #332 from zaphoyd/tutorials
...
Update examples and tutorials
2014-03-02 19:27:56 -06:00
Peter Thorson
a5a30e554e
rename app_client to utility_client and set utility_client to be the final step of the utility_client tutorial
2014-03-02 19:21:17 -06:00
Peter Thorson
9c8762c961
rename old utility client to debug client
2014-03-02 19:20:42 -06:00
Peter Thorson
797ce35c5a
more renaming and adding license notes
2014-03-02 19:14:59 -06:00
Peter Thorson
30da3a967b
renaming and re-titling the app client tutorial to utility client
2014-03-02 19:10:24 -06:00
Peter Thorson
e1547bbde8
stray characters
2014-03-02 19:04:13 -06:00
Peter Thorson
37f69cc19b
fix typo
2014-03-02 19:03:04 -06:00