Commit Graph

1886 Commits

Author SHA1 Message Date
Christopher Kohlhoff
276eb04f42 Add missing include of "asio/error.hpp" header. 2012-12-30 10:13:07 +11:00
Christopher Kohlhoff
c2067a5ea4 Add missing include of <climits> header. 2012-12-30 10:12:48 +11:00
Christopher Kohlhoff
9eb2e5f14b Add a small block recycling optimisation. 2012-08-21 22:28:04 +10:00
Christopher Kohlhoff
a57db433e0 Enable noexcept qualifier for error categories when using recent versions of boost. 2012-08-21 22:28:04 +10:00
Christopher Kohlhoff
fa545c7b26 Fix deadlock that can occur on Windows when shutting down a pool of io_service threads due to running out of work. 2012-08-21 22:28:04 +10:00
Christopher Kohlhoff
78e7dbfa84 Use _snwprintf to address a compile error due to the changed swprintf signature in recent versions of MinGW. 2012-08-21 22:28:04 +10:00
Christopher Kohlhoff
a57b9ad376 Use long rather than int for SSL_CTX options, to match OpenSSL. 2012-08-21 22:28:04 +10:00
Christopher Kohlhoff
6cf1701ac1 Treat errors from accept as non-fatal. 2012-08-21 22:28:04 +10:00
Christopher Kohlhoff
640b17ba7f Fix error in example embedded in basic_socket::get_option's documentation. 2012-08-21 22:28:04 +10:00
Christopher Kohlhoff
88cacbfa6d Fix typos in comments. 2012-08-21 22:28:04 +10:00
Christopher Kohlhoff
d1f36e5f6b Fix some 64-to-32-bit conversion warnings. 2012-08-21 22:28:04 +10:00
Christopher Kohlhoff
cd8ab40d10 Ignore files generated by test-driver. 2012-08-21 22:28:04 +10:00
Christopher Kohlhoff
87636b0837 asio version 1.8.2 released 2012-08-21 22:28:04 +10:00
Christopher Kohlhoff
3bfd5b60bf Add configure test for boost 1.51. 2012-08-21 21:43:37 +10:00
Christopher Kohlhoff
6ff1195806 Add revision history. 2012-08-13 21:09:40 +10:00
Christopher Kohlhoff
854d019a58 Instead of using tie(), set the ios_base::unitbuf flag to force the stream to be flushed after every insertion. 2012-07-24 09:40:24 +10:00
Christopher Kohlhoff
1afef34c9a Decorate GCC attribute names with underscores to prevent interaction
with user-defined macros.
2012-07-22 15:49:35 +10:00
Christopher Kohlhoff
45ccb86ae5 Add missing #include of <cctype>, needed for some versions of MinGW. 2012-07-22 09:30:45 +10:00
Christopher Kohlhoff
368bd798f5 Use gcc's atomic builtins on arm, when available. 2012-07-18 09:45:26 +10:00
Christopher Kohlhoff
db0128072c Intel compiler version 11 seems to support __thread keyword too. 2012-07-17 09:16:16 +10:00
Christopher Kohlhoff
8730c250cc Ensure use of __thread keyword is disabled for older Intel compilers. 2012-07-17 09:09:07 +10:00
Christopher Kohlhoff
91dd4e9943 Make strand destruction a no-op, to allow strand objects to be destroyed
after their associated io_service has been destroyed.
2012-07-15 09:56:46 +10:00
Christopher Kohlhoff
baab2276d8 Use the __thread keyword extension when compiling with gcc on linux x86. 2012-07-15 08:58:05 +10:00
Christopher Kohlhoff
572024a782 Avoid calling work_finished() if a completion handler creates more work. 2012-07-13 18:50:34 +10:00
Christopher Kohlhoff
54621fbc87 Eliminate redundant call to call_stack::contains(this) when dispatching a completion handler. 2012-07-13 16:55:53 +10:00
Christopher Kohlhoff
3e01781654 Add support for some newer versions of glibc which provide the epoll_create1
function but always fail with ENOSYS.
2012-07-13 16:37:53 +10:00
Christopher Kohlhoff
dffb3d299a Use SSE2 load and store fences. 2012-07-11 09:51:01 +10:00
Christopher Kohlhoff
4dfd6c3fad Throw exception if SSL engine initialisation fails. 2012-07-11 09:41:03 +10:00
Christopher Kohlhoff
62fb608f99 Fix another regression in buffered_write_stream. 2012-07-11 09:34:30 +10:00
Christopher Kohlhoff
1d1e3365bc asio version 1.8.1 released 2012-07-10 22:59:38 +10:00
Christopher Kohlhoff
b29bdb4e5b Add detection for Boost 1.50.0. 2012-07-04 08:59:56 +10:00
Christopher Kohlhoff
f7264629b0 Update revision history. 2012-05-29 07:59:36 +10:00
Christopher Kohlhoff
83499da38e Use the thread's private_op_queue for handlers returned by the reactor task.
This fixes a problem where signal_set handlers are not being called when the
io_service's concurrency hint is set to 1.
2012-05-29 07:56:12 +10:00
Christopher Kohlhoff
2ded50396f Add support for g++ 4.7 when compiling in C++11 mode. 2012-05-29 07:23:55 +10:00
Christopher Kohlhoff
0a33dcbd6f Revision history. 2012-05-27 07:54:19 +10:00
Christopher Kohlhoff
9e029a9bf0 Added lazy registration for EPOLLOUT. 2012-05-27 07:43:30 +10:00
Christopher Kohlhoff
003cb496b7 Eliminate a lock/unlock pair when rescheduling a strand. 2012-05-24 18:23:16 +10:00
Christopher Kohlhoff
136483df13 Remove trailing whitespace. 2012-05-24 09:23:22 +10:00
Christopher Kohlhoff
10f4bceda3 Last version's race-condition-related revert in the epoll_reactor was
incomplete and broke out-of-band handling. Fixed epoll_reactor::start_op so
that it is now exactly the same as the older, working version.
2012-05-24 08:11:45 +10:00
Christopher Kohlhoff
1f65c999c6 Respect the OPENSSL_NO_ENGINE feature test #define. 2012-05-24 07:38:10 +10:00
Christopher Kohlhoff
199ba153a4 Use correct basic_io_object member functions so that basic_object_handle works with c++11 compilers. 2012-05-24 06:44:24 +10:00
Christopher Kohlhoff
b49202062e asio version 1.8.0 released 2012-05-23 08:57:28 +10:00
Christopher Kohlhoff
baa2094fa1 Updated revision history. 2012-05-23 07:21:46 +10:00
Christopher Kohlhoff
a6fb607ab0 Regenerate documentation. 2012-05-23 07:19:50 +10:00
Christopher Kohlhoff
d8e460eb86 Exclude Clock type from type requirements hyperlinks. 2012-05-23 06:48:42 +10:00
Christopher Kohlhoff
0482ea699e Fix date. 2012-05-23 06:47:21 +10:00
Christopher Kohlhoff
fc5fba999e Fix doc formatting. 2012-05-23 06:45:47 +10:00
Christopher Kohlhoff
23b5d3f304 Regenerate documentation. 2012-05-22 18:55:11 +10:00
Christopher Kohlhoff
fc2efe3da5 Fix bug where the second buffer in an array of two buffers may be
ignored if the first buffer is empty.
2012-05-22 18:42:54 +10:00
Christopher Kohlhoff
52ce6325b9 Revert previous change that allowed some operations to be performed without
holding the lock, as it introduced a race condition in certain multithreaded
scenarios.
2012-05-22 18:42:54 +10:00