mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Check error on HTTP request in server
This commit is contained in:
@@ -327,8 +327,9 @@ do_read(yield_context do_yield)
|
|||||||
start_timer();
|
start_timer();
|
||||||
beast::http::async_read(impl().stream_,
|
beast::http::async_read(impl().stream_,
|
||||||
read_buf_, message_, do_yield[ec]);
|
read_buf_, message_, do_yield[ec]);
|
||||||
// VFALCO What if the connection was closed?
|
|
||||||
cancel_timer();
|
cancel_timer();
|
||||||
|
if(ec)
|
||||||
|
return fail(ec, "http::read");
|
||||||
do_request();
|
do_request();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user