shrpx: Handle graceful shutdown in SPDY backend
This commit is contained in:
parent
3ba73db7d7
commit
9425f8a45f
|
@ -843,15 +843,15 @@ int SpdySession::on_read()
|
||||||
SSLOG(ERROR, this) << "spdylay_session_send() returned error: "
|
SSLOG(ERROR, this) << "spdylay_session_send() returned error: "
|
||||||
<< spdylay_strerror(rv);
|
<< spdylay_strerror(rv);
|
||||||
}
|
}
|
||||||
// if(rv == 0) {
|
if(rv == 0) {
|
||||||
// if(spdylay_session_want_read(session_) == 0 &&
|
if(spdylay_session_want_read(session_) == 0 &&
|
||||||
// spdylay_session_want_write(session_) == 0) {
|
spdylay_session_want_write(session_) == 0) {
|
||||||
// if(ENABLE_LOG) {
|
if(ENABLE_LOG) {
|
||||||
// LOG(INFO) << "No more read/write for this SPDY session";
|
SSLOG(INFO, this) << "No more read/write for this session";
|
||||||
// }
|
}
|
||||||
// rv = -1;
|
rv = -1;
|
||||||
// }
|
}
|
||||||
// }
|
}
|
||||||
return rv;
|
return rv;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -867,15 +867,15 @@ int SpdySession::send()
|
||||||
SSLOG(ERROR, this) << "spdylay_session_send() returned error: "
|
SSLOG(ERROR, this) << "spdylay_session_send() returned error: "
|
||||||
<< spdylay_strerror(rv);
|
<< spdylay_strerror(rv);
|
||||||
}
|
}
|
||||||
// if(rv == 0) {
|
if(rv == 0) {
|
||||||
// if(spdylay_session_want_read(session_) == 0 &&
|
if(spdylay_session_want_read(session_) == 0 &&
|
||||||
// spdylay_session_want_write(session_) == 0) {
|
spdylay_session_want_write(session_) == 0) {
|
||||||
// if(ENABLE_LOG) {
|
if(ENABLE_LOG) {
|
||||||
// LOG(INFO) << "No more read/write for this SPDY session";
|
SSLOG(INFO, this) << "No more read/write for this session";
|
||||||
// }
|
}
|
||||||
// rv = -1;
|
rv = -1;
|
||||||
// }
|
}
|
||||||
// }
|
}
|
||||||
return rv;
|
return rv;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue