asio_client_session_impl.cc: fixes situation where user is not notified about closed session when remote server sent GOAWAY
This commit is contained in:
parent
f8933fe504
commit
83dff3f009
|
@ -710,6 +710,7 @@ void session_impl::do_write() {
|
||||||
|
|
||||||
if (wblen_ == 0) {
|
if (wblen_ == 0) {
|
||||||
if (should_stop()) {
|
if (should_stop()) {
|
||||||
|
call_error_cb(make_error_code(static_cast<nghttp2_error>(NGHTTP2_INTERNAL_ERROR)));
|
||||||
stop();
|
stop();
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in New Issue