mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Fix eof on HTTP client get
This commit is contained in:
@@ -520,6 +520,9 @@ public:
|
|||||||
if (ec == boost::asio::error::operation_aborted)
|
if (ec == boost::asio::error::operation_aborted)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
if (ec == boost::asio::error::eof)
|
||||||
|
ec = error_code();
|
||||||
|
|
||||||
if (ec != 0)
|
if (ec != 0)
|
||||||
{
|
{
|
||||||
failed (ec);
|
failed (ec);
|
||||||
|
|||||||
@@ -56,7 +56,7 @@ public:
|
|||||||
virtual void abstract_async_get (boost::asio::io_service& io_service,
|
virtual void abstract_async_get (boost::asio::io_service& io_service,
|
||||||
URL const& url, AbstractHandler <void (result_type)> handler) = 0;
|
URL const& url, AbstractHandler <void (result_type)> handler) = 0;
|
||||||
|
|
||||||
/** Cancel any pending asynchronous operations. */
|
/** Cancel all pending asynchronous operations. */
|
||||||
virtual void cancel() = 0;
|
virtual void cancel() = 0;
|
||||||
|
|
||||||
/** Block until all asynchronous i/o completes. */
|
/** Block until all asynchronous i/o completes. */
|
||||||
|
|||||||
Reference in New Issue
Block a user