Commit Graph

864 Commits

Author SHA1 Message Date
Christopher Kohlhoff
1b337d8054 Fix two problems in the SSL implementation:
- A read operation should check the read buffer first to see if there's any
  data present and use that first, before issuing a new read from the
  socket.

- The read buffer was a member of the openssl_operation class, and a new
  openssl_operation object is created for each read or write initiated by
  the application. This meant that any surplus data from a previous read is
  lost. Changed the buffer to be a member of the stream object.


[SVN r34738]
2006-07-26 11:14:12 +00:00
Christopher Kohlhoff
418caa0ef9 Remove tab characters.
[SVN r34725]
2006-07-25 11:01:15 +00:00
Christopher Kohlhoff
72dfeb78e5 Add overloads of read_until and async_read_until that take a string. Fix
bug in regex-based overload of async_read_until.


[SVN r34488]
2006-07-09 07:08:03 +00:00
Christopher Kohlhoff
5e2d09cdf2 Remove redundant code after end of endless for loop.
[SVN r34487]
2006-07-09 06:59:50 +00:00
Christopher Kohlhoff
66ce772f7a Remove accidentally duplicated code. Fix error in conditional expression.
[SVN r34486]
2006-07-09 06:58:54 +00:00
Christopher Kohlhoff
b8e5e53b5f Remove extraneous comma from end of enumerator list.
[SVN r34485]
2006-07-09 06:57:33 +00:00
Christopher Kohlhoff
7027bf39d5 Change strand implementation so that dispatch will execute a handler
immediately if called from within the strand.

Add hook function for customising handler dispatch.

Need to use reinterpret_cast when testing for enable_connection_aborted
socket option, to allow non-int socket options to compile correctly.


[SVN r34464]
2006-07-05 05:48:10 +00:00
Christopher Kohlhoff
27d17b40fb Use correct form for strerror_r on NetBSD.
[SVN r34462]
2006-07-05 05:27:48 +00:00
Christopher Kohlhoff
6171e026e7 Add support for compiling on Mac OS X 10.3.
[SVN r34461]
2006-07-05 05:26:35 +00:00
Christopher Kohlhoff
a0962bfdb5 Automatically define WIN32 for MSVC, since some old Platform SDKs don't
automatically define it, but Winsock2.h requires it.


[SVN r34460]
2006-07-05 05:22:22 +00:00
Christopher Kohlhoff
73ce705d9b Documentation fixes. Clean up basic_streambuf-related functions.
[SVN r34332]
2006-06-18 08:01:10 +00:00
Christopher Kohlhoff
75a90a7723 Fix bug in reactor_op_queue::dispatch_all_operations().
[SVN r34331]
2006-06-18 07:59:26 +00:00
Christopher Kohlhoff
9f8d3f88c6 Ensure synchronous SSL functions call the supplied Error_Handler object.
[SVN r34330]
2006-06-18 07:58:02 +00:00
Christopher Kohlhoff
da0cf5f68a Initial asio checkin.
[SVN r34306]
2006-06-14 22:26:36 +00:00