Fix eof on HTTP client get

This commit is contained in:
Vinnie Falco
2013-10-03 17:23:14 -07:00
parent 228b664ecf
commit 8b7056b06c
2 changed files with 4 additions and 1 deletions

View File

@@ -520,6 +520,9 @@ public:
if (ec == boost::asio::error::operation_aborted)
return;
if (ec == boost::asio::error::eof)
ec = error_code();
if (ec != 0)
{
failed (ec);

View File

@@ -56,7 +56,7 @@ public:
virtual void abstract_async_get (boost::asio::io_service& io_service,
URL const& url, AbstractHandler <void (result_type)> handler) = 0;
/** Cancel any pending asynchronous operations. */
/** Cancel all pending asynchronous operations. */
virtual void cancel() = 0;
/** Block until all asynchronous i/o completes. */