nghttpx: More logging for PROXY protocol handling
This commit is contained in:
parent
ce53bd239e
commit
d05b77b36c
|
@ -870,6 +870,9 @@ int ClientHandler::proxy_protocol_read() {
|
||||||
auto end = std::find_first_of(rb_.pos, rb_.pos + rb_.rleft(),
|
auto end = std::find_first_of(rb_.pos, rb_.pos + rb_.rleft(),
|
||||||
std::begin(chrs), std::end(chrs));
|
std::begin(chrs), std::end(chrs));
|
||||||
if (end + 2 > rb_.pos + rb_.rleft() || *end == '\0' || end[1] != '\n') {
|
if (end + 2 > rb_.pos + rb_.rleft() || *end == '\0' || end[1] != '\n') {
|
||||||
|
if (LOG_ENABLED(INFO)) {
|
||||||
|
CLOG(INFO, this) << "PROXY-protocol-v1: No ending CR LF sequence found";
|
||||||
|
}
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue