nghttpd, nghttpx: Don't log error NGHTTP2_ERR_BAD_PREFACE
This commit is contained in:
parent
e2bbc94616
commit
9f5f724147
|
@ -418,8 +418,10 @@ int Http2Handler::read_clear() {
|
|||
}
|
||||
rv = nghttp2_session_mem_recv(session_, buf, nread);
|
||||
if (rv < 0) {
|
||||
if (rv != NGHTTP2_ERR_BAD_PREFACE) {
|
||||
std::cerr << "nghttp2_session_mem_recv() returned error: "
|
||||
<< nghttp2_strerror(rv) << std::endl;
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
@ -540,8 +542,10 @@ int Http2Handler::read_tls() {
|
|||
auto nread = rv;
|
||||
rv = nghttp2_session_mem_recv(session_, buf, nread);
|
||||
if (rv < 0) {
|
||||
if (rv != NGHTTP2_ERR_BAD_PREFACE) {
|
||||
std::cerr << "nghttp2_session_mem_recv() returned error: "
|
||||
<< nghttp2_strerror(rv) << std::endl;
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -780,8 +780,10 @@ int Http2Upstream::on_read() {
|
|||
if (rb->rleft()) {
|
||||
rv = nghttp2_session_mem_recv(session_, rb->pos, rb->rleft());
|
||||
if (rv < 0) {
|
||||
if (rv != NGHTTP2_ERR_BAD_PREFACE) {
|
||||
ULOG(ERROR, this) << "nghttp2_session_recv() returned error: "
|
||||
<< nghttp2_strerror(rv);
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue