From 68510f12820d109085719db15f39c4fa6d090227 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Sun, 25 Jan 2015 15:37:09 +0900 Subject: [PATCH] nghttpx: SpdyUpstream: Handle error from error_reply --- src/shrpx_spdy_upstream.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/shrpx_spdy_upstream.cc b/src/shrpx_spdy_upstream.cc index b19e46a6..41264cfb 100644 --- a/src/shrpx_spdy_upstream.cc +++ b/src/shrpx_spdy_upstream.cc @@ -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; }