nghttpx: Handle SSL/TLS data following PROXY protocol line
This commit is contained in:
parent
83ff3de9ae
commit
1c2fcc2a55
|
@ -872,6 +872,11 @@ ssize_t parse_proxy_line_port(const uint8_t *first, const uint8_t *last) {
|
||||||
} // namespace
|
} // namespace
|
||||||
|
|
||||||
int ClientHandler::on_proxy_protocol_finish() {
|
int ClientHandler::on_proxy_protocol_finish() {
|
||||||
|
if (conn_.tls.ssl) {
|
||||||
|
conn_.tls.rbuf.append(rb_.pos, rb_.rleft());
|
||||||
|
rb_.reset();
|
||||||
|
}
|
||||||
|
|
||||||
setup_upstream_io_callback();
|
setup_upstream_io_callback();
|
||||||
|
|
||||||
// Run on_read to process data left in buffer since they are not
|
// Run on_read to process data left in buffer since they are not
|
||||||
|
|
Loading…
Reference in New Issue