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
d7a7112c8b
removes unused qualifiers references #376
2014-10-07 10:17:02 -04:00
Peter Thorson
e8d25d22bc
adds documentation and removes unused parameters references #376
2014-10-07 10:04:54 -04:00
Peter Thorson
fe6d82e7a3
fix local variable shadowing warning
2014-10-07 08:17:53 -04:00
Peter Thorson
2f64f8d91a
adds documentation and removes unused parameters references #376
2014-10-06 19:04:04 -04:00
Peter Thorson
6da47743e8
removes unused function references #376
2014-10-06 18:34:13 -04:00
Peter Thorson
6c242b205b
detab entire project references #376
2014-10-06 18:33:55 -04:00
Peter Thorson
71a10d83c8
Merge core requirements feature branch
2014-08-09 16:18:00 -05:00
Peter Thorson
fe0310b283
make version introduced notes less specific
2014-08-09 16:13:19 -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
5d0c2f6341
update version information for develop branch
2014-08-09 15:38:25 -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
Peter Thorson
ad2932bbff
Disable open timeout when duration is set to zero
2014-07-24 21:39:12 -05:00
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
7137105a81
documentation updates
2014-04-02 11:57:04 -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
0ca2bae121
Merge branch 'master' into core_dependencies
...
Conflicts:
changelog.md
2014-03-25 07:17:12 -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
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
497bc574da
remove references to unused iostream header from asio transport
2014-03-20 07:15:02 -05:00
Peter Thorson
0bfb67ef11
Add minimal_client and minimal_server configs references #338
2014-03-20 07:03:31 -05:00
Peter Thorson
762c013b93
Adds a stub transport policy
...
This will be used in the minimal config to avoid bringing in iostream
dependencies. It will also be used to document the minimal interface
for writing a custom transport policy.
2014-03-20 07:02:40 -05:00
Peter Thorson
9d237effc7
remove dependency on std::iostream from core
...
It is still required for the iostream transport and the basic
(iostream) logging policy.
2014-03-20 06:10:24 -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
Dominik Schmidt
77495d4076
Use _WIN32 instead of WIN32 preprocessor directive and fix warnings
2014-03-14 17:42:05 +01: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
a63f7d8b7b
switch all exceptions to be of type websocketpp::exception
2014-03-06 19:35:25 -06:00
Peter Thorson
edb26d7721
listen errors are now reported to the caller
2014-03-06 19:01:11 -06:00
Peter Thorson
770b32275c
updates websocketpp::exception to wrap lib::error_code
2014-03-05 08:30:08 -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
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
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
bdeb4ad680
code style and documentation
2014-03-02 21:39:34 -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
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