Commit c38c6cdd authored by Tatsuhiro Tsujikawa's avatar Tatsuhiro Tsujikawa

nghttpx: Fix bug writecb is nullptr for HTTP/1 connection

parent b2a34c2e
...@@ -180,6 +180,7 @@ void upstream_http1_connhd_readcb(bufferevent *bev, void *arg) ...@@ -180,6 +180,7 @@ void upstream_http1_connhd_readcb(bufferevent *bev, void *arg)
} }
// Reset header length for later HTTP/2.0 upgrade // Reset header length for later HTTP/2.0 upgrade
handler->set_left_connhd_len(NGHTTP2_CLIENT_CONNECTION_HEADER_LEN); handler->set_left_connhd_len(NGHTTP2_CLIENT_CONNECTION_HEADER_LEN);
handler->set_bev_cb(upstream_readcb, upstream_writecb, upstream_eventcb);
if(handler->on_read() != 0) { if(handler->on_read() != 0) {
delete handler; delete handler;
return; return;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment