nghttpx: Lesser usage of DIE
This commit is contained in:
parent
b1fee8ff63
commit
799a76de74
|
@ -602,7 +602,8 @@ int Http2Session::initiate_connection() {
|
|||
}
|
||||
|
||||
// Unreachable
|
||||
DIE();
|
||||
assert(0);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue