2
0
mirror of https://github.com/boostorg/asio.git synced 2026-01-27 18:42:07 +00:00
Commit Graph

22 Commits

Author SHA1 Message Date
Christopher Kohlhoff
bb38d425fb Merge from trunk:
* Chrono support.

* Added object_handle support.

* Need to enable the basic_handle class when object_handle is supported.

* Update copyright notices.

* Fix MSVC "performance warning".

* Fix for NetBSD. Fixes #6098.

* Fix regression in buffered_write_stream. Fixes #6310.

* Fix deadlock on Mac OS X. Fixes #6275.

* On linux, connect can return EAGAIN in certain circumstances. Remap to another
  error so that it doesn't look like a non-blocking operation. Fixes #6048.

* Fix non-paged pool "leak" on Windows when io_service is repeatedly run without anything to do. Fixes #6321.

* Disable object_handle on Windows CE.

* Add extra include required for OVERLAPPED struct.

* Fix doxygen comments.

* Update documentation.

* Add missing class.

* Update copyright year.


[SVN r76516]
2012-01-15 13:46:25 +00:00
Christopher Kohlhoff
77dec8e703 Merge from trunk...
Fix compile error in regex overload of async_read_until.hpp. Fixes #5688

Explicitly specify the signal() function from the global namespace. Fixes #5722

Don't read the clock unless the heap is non-empty.

Change the SSL buffers sizes so that they're large enough to hold a complete TLS record. Fixes #5854

Make sure the synchronous null_buffers operations obey the user's non_blocking setting. Fixes #5756

Set size of select fd_set at runtime when using Windows.

Disable warning due to const qualifier being applied to function type.

Fix crash due to gcc_x86_fenced_block that shows up when using the Intel C++ compiler. Fixes #5763

Specialise operations for buffer sequences that are arrays of exactly two buffers.

Initialise all OpenSSL algorithms.

Fix error mapping when session is gracefully shut down.

Various performance improvements:

* Split the task_io_service's run and poll code.

* Use thread-local operation queues in single-threaded use cases (i.e. concurrency_hint is 1) to eliminate a lock/unlock pair.

* Only fence block exit when a handler is being run directly out of the io_service.

* Prefer x86 mfence-based fenced block when available.

* Use a plain ol' long for the atomic_count when all thread support is disabled.

* Allow some epoll_reactor speculative operations to be performed without holding the lock.

* Improve locality of reference by performing an epoll_reactor's I/O operation immediately before the corresponding handler is called. This also improves scalability across CPUs when multiple threads are running the io_service.

* Pass same error_code variable through to each operation's complete() function.

* Optimise creation of and access to the io_service implementation.

Remove unused state in HTTP server examples.

Add latency test programs.


[SVN r74863]
2011-10-09 21:59:57 +00:00
Christopher Kohlhoff
b91e7a6f65 Merge asio from trunk.
[SVN r72428]
2011-06-05 23:21:43 +00:00
Christopher Kohlhoff
28ab37a23e Merge from trunk:
* Update copyright notice.

* Version bump.

* Fix out-of-bounds address_v4::broadcast() return value on 64-bit systems.

* Use correct interrupt method when timerfd is not available. Fixes #5045


[SVN r68200]
2011-01-17 04:28:16 +00:00
Christopher Kohlhoff
df91035ff5 Update copyright notices.
[SVN r58666]
2010-01-04 09:36:00 +00:00
Christopher Kohlhoff
2c41e180c1 Merge from trunk. Fixes #3095, #3216, #3098, #3107, #1341, #2754, #3157, #2620, #2618.
........
  r54373 | chris_kohlhoff | 2009-06-26 21:03:14 +1000 (Fri, 26 Jun 2009) | 2 lines
  
  Fix doc generation for array reference parameters.
........
  r54376 | chris_kohlhoff | 2009-06-26 23:35:04 +1000 (Fri, 26 Jun 2009) | 2 lines
  
  Fix bug in hash resize. Ref #3095.
........
  r54377 | chris_kohlhoff | 2009-06-26 23:55:24 +1000 (Fri, 26 Jun 2009) | 3 lines
  
  Remove a local variable that was hiding the ec parameter and preventing
  error codes from being correctly propagated. Ref #3216.
........
  r54390 | chris_kohlhoff | 2009-06-27 12:17:49 +1000 (Sat, 27 Jun 2009) | 2 lines
  
  Fix failures reported when the tests are built with _GLIBCXX_DEBUG. Ref #3098.
........
  r54392 | chris_kohlhoff | 2009-06-27 15:24:16 +1000 (Sat, 27 Jun 2009) | 2 lines
  
  Fix custom memory allocation for timers. Ref #3107.
........
  r54393 | chris_kohlhoff | 2009-06-27 17:07:40 +1000 (Sat, 27 Jun 2009) | 2 lines
  
  Fix various g++ warnings. Ref #1341.
........
  r54400 | chris_kohlhoff | 2009-06-27 17:52:11 +1000 (Sat, 27 Jun 2009) | 4 lines
  
  Use boost::throw_exception() rather than throw keyword to allow asio to be
  used when exception support is disabled. Note that the SSL wrappers still
  require exception support. Refs #2754.
........
  r54407 | chris_kohlhoff | 2009-06-27 19:13:24 +1000 (Sat, 27 Jun 2009) | 2 lines
  
  Make links to function overloads more obvious.
........
  r54466 | chris_kohlhoff | 2009-06-28 23:07:43 +1000 (Sun, 28 Jun 2009) | 2 lines
  
  Add header file information to reference docs. Refs #3157.
........
  r54467 | chris_kohlhoff | 2009-06-28 23:20:17 +1000 (Sun, 28 Jun 2009) | 4 lines
  
  Treat 0-byte reads and writes as no-ops to comply with the documented type
  requirements for SyncReadStream, AsyncReadStream, SyncWriteStream and
  AsyncWriteStream.
........
  r54498 | chris_kohlhoff | 2009-06-29 19:32:41 +1000 (Mon, 29 Jun 2009) | 2 lines
  
  Add enum values to doc index. Refs #2620.
........


[SVN r54499]
2009-06-29 13:36:06 +00:00
Christopher Kohlhoff
2b5306585d Merge fixes from trunk.
........
  r43377 | chris_kohlhoff | 2008-02-23 09:43:54 +1100 (Sat, 23 Feb 2008) | 2 lines
  
  Use the correct vector of timer queues when dispatching timers.
........
  r43437 | chris_kohlhoff | 2008-02-29 23:57:57 +1100 (Fri, 29 Feb 2008) | 2 lines
  
  Add missing tie().
........
  r43469 | chris_kohlhoff | 2008-03-04 00:21:05 +1100 (Tue, 04 Mar 2008) | 4 lines
  
  Disable use of CancelIo by default, due to the possibility of silent
  failure on some system configurations. Swallow error returned by CancelIoEx
  if there are no operations to be cancelled.
........
  r43470 | chris_kohlhoff | 2008-03-04 00:27:06 +1100 (Tue, 04 Mar 2008) | 2 lines
  
  Add missing 'boost_' prefix to helper namespace.
........
  r43471 | chris_kohlhoff | 2008-03-04 00:36:35 +1100 (Tue, 04 Mar 2008) | 2 lines
  
  Regenerate documentation.
........
  r43472 | chris_kohlhoff | 2008-03-04 01:05:35 +1100 (Tue, 04 Mar 2008) | 1 line
  
  Update copyright notices.
........
  r43473 | chris_kohlhoff | 2008-03-04 01:13:01 +1100 (Tue, 04 Mar 2008) | 2 lines
  
  Update copyright notices.
........
  r43569 | chris_kohlhoff | 2008-03-13 00:25:49 +1100 (Thu, 13 Mar 2008) | 4 lines
  
  Revert to having the windows-bug workaround (short timeout on
  GetQueuedCompletionStatus) on all threads as there are still scenarios
  where threads can get stuck indefinitely.
........


[SVN r43571]
2008-03-12 14:12:08 +00:00
Christopher Kohlhoff
c5c569f0f5 Merged in fixes from trunk.
........
  r42119 | chris_kohlhoff | 2007-12-18 00:04:30 +1100 (Tue, 18 Dec 2007) | 2 lines
  
  Fixes for older HP-UX.
........
  r42121 | chris_kohlhoff | 2007-12-18 00:17:46 +1100 (Tue, 18 Dec 2007) | 2 lines
  
  Documentation fixes.
........
  r42750 | chris_kohlhoff | 2008-01-15 00:13:35 +1100 (Tue, 15 Jan 2008) | 2 lines
  
  Fix concept name in comment.
........
  r42752 | chris_kohlhoff | 2008-01-15 00:20:06 +1100 (Tue, 15 Jan 2008) | 2 lines
  
  Add missing broken pipe error.
........
  r42753 | chris_kohlhoff | 2008-01-15 00:21:37 +1100 (Tue, 15 Jan 2008) | 3 lines
  
  Don't include sys/time.h when compiling with aCC, as that header does not
  supply pselect(), which is needed for HP-UX/aCC to work correctly.
........
  r42754 | chris_kohlhoff | 2008-01-15 00:22:21 +1100 (Tue, 15 Jan 2008) | 2 lines
  
  Disable noisy and incorrect /Wp64 warnings generated by MSVC.
........
  r42755 | chris_kohlhoff | 2008-01-15 00:24:28 +1100 (Tue, 15 Jan 2008) | 3 lines
  
  Don't call epoll_wait/kevent if there are no old operations (where old means
  added prior to the last epoll_wait/kevent call) needing to be demultiplexed.
........
  r42756 | chris_kohlhoff | 2008-01-15 00:25:24 +1100 (Tue, 15 Jan 2008) | 2 lines
  
  Silence some integer truncation warnings.
........
  r42758 | chris_kohlhoff | 2008-01-15 00:27:52 +1100 (Tue, 15 Jan 2008) | 8 lines
  
  Silence some integer truncation warnings.
  
  Only perform the windows-bug workaround where we use a short timeout with
  GetQueuedCompletionStatus from one thread, i.e. the timer thread.
  
  Keep track of the number of OVERLAPPED-derived operations to ensure that
  they all get cleaned up when the io_service is destroyed.
........
  r42759 | chris_kohlhoff | 2008-01-15 00:29:08 +1100 (Tue, 15 Jan 2008) | 5 lines
  
  Check for truncation when converting buffer size from size_t to openssl's
  int argument.
  
  Try to fix possible thread-safety issues in SSL wrapper.
........
  r42817 | chris_kohlhoff | 2008-01-17 00:46:01 +1100 (Thu, 17 Jan 2008) | 2 lines
  
  Set the openssl callback function for getting a thread ID.
........
  r43054 | chris_kohlhoff | 2008-02-02 22:37:45 +1100 (Sat, 02 Feb 2008) | 4 lines
  
  Ensure that the workaround for the MSVC secure iterator problem is only
  used when compiling with MSVC. The workaround causes g++'s library debug
  mode to report errors due to the assignment from a singular iterator.
........
  r43055 | chris_kohlhoff | 2008-02-02 22:39:17 +1100 (Sat, 02 Feb 2008) | 2 lines
  
  Fix "possible loss of data" warning when building for Windows 2000 targets.
........
  r43056 | chris_kohlhoff | 2008-02-02 23:02:23 +1100 (Sat, 02 Feb 2008) | 3 lines
  
  The latest Windows SDKs don't support IPv6 when building for Windows 2000,
  so we need to use the SDK emulation in that case.
........
  r43221 | chris_kohlhoff | 2008-02-12 00:59:44 +1100 (Tue, 12 Feb 2008) | 2 lines
  
  Need to define _XOPEN_SOURCE_EXTENDED when compiling for HP-UX.
........
  r43301 | chris_kohlhoff | 2008-02-19 00:31:26 +1100 (Tue, 19 Feb 2008) | 2 lines
  
  Fix printing of error messages.
........
  r43302 | chris_kohlhoff | 2008-02-19 00:33:23 +1100 (Tue, 19 Feb 2008) | 2 lines
  
  Only define _XOPEN_SOURCE_EXTENDED when building with gcc on HP-UX.
........
  r43303 | chris_kohlhoff | 2008-02-19 00:35:15 +1100 (Tue, 19 Feb 2008) | 3 lines
  
  Add missing #include of socket_types.hpp needed for the SSL unit tests
  to compile successfully on Windows.
........


[SVN r43342]
2008-02-21 06:54:04 +00:00
Beman Dawes
c46f430670 Full merge from trunk at revision 41356 of entire boost-root tree.
[SVN r41370]
2007-11-25 18:38:02 +00:00
Beman Dawes
2f3a9792f8 Full merge from trunk at revision 41356 of entire boost-root tree.
[SVN r41369]
2007-11-25 18:07:19 +00:00
Christopher Kohlhoff
5af39ab4ef Make Windows XP the default target Windows version as the latest Windows
SDK doesn't support IPv6 for Windows 2000 targets.


[SVN r40108]
2007-10-17 07:58:38 +00:00
Christopher Kohlhoff
7825a45960 Add missing "lib ipv6 ;" that's needed for HP-UX.
[SVN r39517]
2007-09-25 01:56:46 +00:00
Christopher Kohlhoff
0987067acc Add extra library 'ipv6' needed on HP-UX.
[SVN r39509]
2007-09-24 13:32:47 +00:00
Christopher Kohlhoff
9f53a075ff Define _WIN32_WINNT to suppress warnings. Add define necessary
for building with cygwin.


[SVN r39100]
2007-09-01 07:32:28 +00:00
Christopher Kohlhoff
ff67d39c15 Ignore errors from shutdown().
[SVN r39093]
2007-09-01 06:13:02 +00:00
Vladimir Prus
00be9349dc Revive V1 Jamfiles at Christopher's request
[SVN r38822]
2007-08-21 13:55:41 +00:00
Christopher Kohlhoff
a1971d2123 Use shutdown() for portable graceful connection closure.
[SVN r38789]
2007-08-20 14:19:49 +00:00
Vladimir Prus
fb46c8923e Remove V1 Jamfiles
[SVN r38516]
2007-08-08 19:02:26 +00:00
Christopher Kohlhoff
0e60b07b4f Add handling for URL-escaping of spaces as plus signs. Remove unnecessary
slash from request path.


[SVN r38054]
2007-06-21 23:39:22 +00:00
Christopher Kohlhoff
44af0244a6 Fix URL-decoding.
[SVN r37721]
2007-05-20 02:52:00 +00:00
Christopher Kohlhoff
6812338b31 Add Jamfiles for new HTTP server examples.
[SVN r37615]
2007-05-07 12:39:31 +00:00
Christopher Kohlhoff
5f61b15b8d Add new HTTP server examples illustrating io_service-per-cpu and
single-io_service-multiple-threads designs.


[SVN r37612]
2007-05-07 11:46:23 +00:00