Fixed an integer overflow problem that occurs when
ip::address_v4::netmask() is used on 64-bit platforms.
Fixed a problem on older Linux kernels (where epoll is used without timerfd
support) that prevents timely delivery of deadline_timer handlers, after
the program has been running for some time (#5045).
Fixed a problem on kqueue-based platforms where a
may never fire if the
is running in a background thread (#4568).
Fixed a const-correctness issue that prevented valid uses of
from compiling (#4638).
Fixed MinGW cross-compilation (#4491).
Removed dependency on deprecated Boost.System functions (#4672).
failures are correctly propagated (#4573).
Added a check for errors returned by
Added support for hardware flow control on QNX (#4625).
on HP-UX, if it is available (#4578).
Ensured handler arguments are passed as lvalues (#4744).
Fixed Windows build when thread support is disabled (#4680).
Fixed a Windows-specific problem where
objects with expiry times set more than 5 minutes in the future may never
on BSD platforms so that an empty service name resolves to port number
0, as per the documentation
Fixed read operations so that they do not accept buffer sequences of type
id to avoid clashing with
Objective-C++ keywords (#4191).
performance issue that can occur when there are many active
deadline_timer objects (#4780).
Fixed the kqueue backend so that it compiles on NetBSD (#4662).
Fixed the socket
io_control() implementation on 64-bit Mac OS X and
BSD platforms (#4782).
Fixed a Windows-specific problem where failures from
accept() are incorrectly treated as successes
Deprecated the separate compilation header
in favour of
Reduced compile times. (Note that some programs may need to add additional
#includes, e.g. if the
boost::array but does not explicitly include
Reduced the size of generated code.
implementation to improve performance.
Improved multiprocessor scalability on Windows by using a dedicated hidden
thread to wait for timers.
Improved performance of
These read operations now use the existing capacity of the
streambuf when reading, rather than limiting
the read to 512 bytes.
Added optional separate compilation. To enable, add
<boost/asio/impl/src.cpp> to one source file in a program, then
build the program with
defined in the project/compiler settings. Alternatively,
BOOST_ASIO_DYN_LINK may be defined to
build a separately-compiled Asio as part of a shared library.
Added new macro
to permit the disabling of memory fences around completion handlers, even
if thread support is enabled.
Reworked timeout examples to better illustrate typical use cases.
Ensured that handler arguments are passed as
Fixed incorrect parameter order in
is used with
getaddrinfo emulation (#4201).
Fixed handling of very small but non-zero timeouts (#4205).
Fixed crash that occurred when an empty buffer sequence was passed to a
composed read or write operation.
Implemented cancellation of
operations on Windows.
Reduced compile times.
Reduced the size of generated code.
Extended the guarantee that background threads don't call user code to
all asynchronous operations (#3923).
Changed to use edge-triggered epoll on Linux.
Changed to use
for dispatching timers on Linux, when available.
Changed to use one-shot notifications with kqueue on Mac OS X and BSD platforms.
Added a bitmask type
as per the TR2 proposal. This type prevents implicit conversion from
allowing the compiler to catch cases where users incorrectly pass a numeric
port number as the service name.
for all Windows compilers. Users can define
to suppress this definition (#3901).
Fixed a bug where 0-byte asynchronous reads were incorrectly passing an
error::eof result to the completion handler
io_control() member functions to always call
ioctl on the underlying descriptor when
modifying blocking mode (#3307).
Changed the resolver implementation to longer require the typedefs
as neither typedef is part of the documented
requirements. The corresponding typedefs in the
classes have been deprecated.
Fixed out-of-band handling for reactors not based on
macro that allows Asio's threading support to be independently disabled.
Minor documentation improvements.
Added a new HTTP Server 4 example illustrating the use of stackless coroutines
Changed handler allocation and invocation to use
to get the address of handler objects, rather than applying
Restricted MSVC buffer debugging workaround to 2008, as it causes a crash
with 2010 beta 2 (#3796,
Fixed a problem with the lifetime of handler memory, where Windows needs
to be valid until both the initiating function call has returned and the
completion packet has been delivered.
Don't block signals while performing system calls, but instead restart
the calls if they are interrupted.
Documented the guarantee made by strand objects with respect to order of
Changed strands to use a pool of implementations, to make copying of strands
Ensured that kqueue support is enabled for BSD platforms (#3626).
boost_ prefix to
thread entry point function (#3809).
only check the socket type (
SOCK_DGRAM) if a service
name has been specified. This should allow the emulation to work with raw
Added a workaround for some broken Windows firewalls that make a socket
appear bound to 0.0.0.0 when it is in fact bound to 127.0.0.1.
Applied a fix for reported excessive CPU usage under Solaris (#3670).
Added some support for platforms that use older compilers such as g++ 2.95
Added a new ping example to illustrate the use of ICMP sockets.
templates to treat 0-byte reads and writes as no-ops, to comply with the
documented type requirements for
Changed some instances of the
to allow Asio to be used when exception support is disabled. Note that
the SSL wrappers still require exception support (#2754).
Made Asio compatible with the OpenSSL 1.0 beta (#3256).
Eliminated a redundant system call in the Solaris
Fixed a bug in resizing of the bucket array in the internal hash maps (#3095).
Ensured correct propagation of the error code when a synchronous accept
Ensured correct propagation of the error code when a synchronous read or
write on a Windows HANDLE fails.
Fixed failures reported when
is defined (#3098).
Fixed custom memory allocation support for timers (#3107).
Tidied up various warnings reported by g++ (#1341,
Various documentation improvements, including more obvious hyperlinks to
function overloads, header file information, examples for the handler type
requirements, and adding enum values to the index (#3157,
Implement automatic resizing of the bucket array in the internal hash maps.
This is to improve performance for very large numbers of asynchronous operations
and also to reduce memory usage for very small numbers. A new macro
BOOST_ASIO_HASH_MAP_BUCKETS may be used
to tweak the sizes used for the bucket arrays. (N.B. this feature introduced
a bug which was fixed in Asio 1.4.3 / Boost 1.40.)
Add performance optimisation for the Windows IOCP backend for when no timers
Prevent locale settings from affecting formatting of TCP and UDP endpoints
Fix a memory leak that occurred when an asynchronous SSL operation's completion
handler threw an exception (#2910).
Fix the implementation of
io_control() so that it adheres to the documented
type requirements for IoControlCommand (#2820).
Fix incompatibility between Asio and ncurses.h (#2156).
On Windows, specifically handle the case when an overlapped
ReadFile call fails with
ERROR_MORE_DATA. This enables a hack
windows::stream_handle can be used with a message-oriented
named pipe (#2936).
Fix system call wrappers to always clear the error on success, as POSIX
allows successful system calls to modify errno (#2953).
Don't include termios.h if
is defined (#2917).
Cleaned up some more MSVC level 4 warnings (#2828).
Various documentation fixes (#2871).
Improved compatibility with some Windows firewall software.
Ensured arguments to
windows::overlapped_ptr::complete() are correctly passed to the completion
Fixed a link problem and multicast failure on QNX (#2504,
Fixed a compile error in SSL support on MinGW / g++ 3.4.5.
Drop back to using a pipe for notification if eventfd is not available
at runtime on Linux (#2683).
Various minor bug and documentation fixes (#2534,
Enhanced CompletionCondition concept with the signature
CompletionCondition(error_code ec, size_t total),
where the return value indicates the maximum number of bytes to be transferred
on the next read or write operation. (The old CompletionCondition signature
is still supported for backwards compatibility).
New windows::overlapped_ptr class to allow arbitrary overlapped I/O functions
(such as TransmitFile) to be used with Asio.
On recent versions of Linux, an eventfd descriptor is now used (rather
than a pipe) to interrupt a blocked select/epoll reactor.
Added const overloads of lowest_layer().
Synchronous read, write, accept and connect operations are now thread safe
(meaning that it is now permitted to perform concurrent synchronous operations
on an individual socket, if supported by the OS).
Reactor-based io_service implementations now use lazy initialisation to
reduce the memory usage of an io_service object used only as a message
Added support for serial ports.
Added support for UNIX domain sockets.
Added support for raw sockets and ICMP.
Added wrappers for POSIX stream-oriented file descriptors (excluding regular
Added wrappers for Windows stream-oriented
such as named pipes (requires
that work with I/O completion ports).
Added wrappers for Windows random-access
such as files (requires
that work with I/O completion ports).
Added support for reactor-style operations (i.e. they report readiness
but perform no I/O) using a new
Added an iterator type for bytewise traversal of buffer sequences.
overloads that take a user-defined function object for locating message
Added an experimental two-lock queue (enabled by defining
may provide better
scalability across many processors.
Various fixes, performance improvements, and more complete coverage of
the custom memory allocation support.
First release of Asio as part of Boost.