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
Peter Thorson
93d9b5f820
Formatting fixes for app client tutorial step 5
2014-03-02 19:02:11 -06:00
Peter Thorson
98fd183210
Finish app client tutorial step 5 (closing)
2014-03-02 18:53:55 -06:00
Peter Thorson
093806f860
Merge branch 'master' into tutorials
2014-03-02 12:21:32 -06:00
Peter Thorson
1da45144e9
whitespace
2014-03-02 12:21:04 -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
40ed74a141
Use clang on OS X by default for building examples and tests
2014-03-02 12:17:03 -06:00
Peter Thorson
fbc9db2b5d
work on close step
2014-03-02 12:06:37 -06:00
Peter Thorson
f87c9d4360
need the line breaks to work here
2014-03-02 08:33:41 -06:00
Peter Thorson
99461184d3
Merge pull request #331 from zaphoyd/tls_short_read
...
Tls short read related changes references #263
2014-02-28 09:04:59 -06:00
Peter Thorson
9eff0db756
update changelog
2014-02-28 09:05:53 -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