nghttpx: Fix handling of return value from nghttp2_submit_push_promise

This commit is contained in:
Tatsuhiro Tsujikawa 2015-02-08 17:21:27 +09:00
parent b01d0c88fe
commit 0efdeab1db
1 changed files with 1 additions and 1 deletions

View File

@ -1624,7 +1624,7 @@ int Http2Upstream::submit_push_promise(const std::string &path,
downstream->get_stream_id(), nva.data(),
nva.size(), nullptr);
if (rv != 0) {
if (rv < 0) {
if (LOG_ENABLED(INFO)) {
ULOG(INFO, this) << "nghttp2_submit_push_promise() failed: "
<< nghttp2_strerror(rv);