nghttpx: Lesser usage of DIE

This commit is contained in:
Tatsuhiro Tsujikawa 2017-03-15 23:13:54 +09:00
parent b1fee8ff63
commit 799a76de74
3 changed files with 4 additions and 3 deletions

View File

@ -602,7 +602,8 @@ int Http2Session::initiate_connection() {
}
// Unreachable
DIE();
assert(0);
return 0;
}

View File

@ -1360,7 +1360,7 @@ int Http2Upstream::rst_stream(Downstream *downstream, uint32_t error_code) {
if (rv < NGHTTP2_ERR_FATAL) {
ULOG(FATAL, this) << "nghttp2_submit_rst_stream() failed: "
<< nghttp2_strerror(rv);
DIE();
return -1;
}
return 0;
}

View File

@ -854,7 +854,7 @@ int SpdyUpstream::rst_stream(Downstream *downstream, int status_code) {
if (rv < SPDYLAY_ERR_FATAL) {
ULOG(FATAL, this) << "spdylay_submit_rst_stream() failed: "
<< spdylay_strerror(rv);
DIE();
return -1;
}
return 0;
}