nghttpx: SpdyUpstream: Handle error from error_reply

This commit is contained in:
Tatsuhiro Tsujikawa 2015-01-25 15:37:09 +09:00
parent 4b58b25c19
commit 68510f1282
1 changed files with 3 additions and 1 deletions

View File

@ -170,7 +170,9 @@ void on_ctrl_recv_callback(spdylay_session *session, spdylay_frame_type type,
}
if (downstream->index_request_headers() != 0) {
upstream->error_reply(downstream, 400);
if (upstream->error_reply(downstream, 400) != 0) {
ULOG(FATAL, upstream) << "error_reply failed";
}
return;
}