nghttpx: Handle SSL/TLS data following PROXY protocol line

This commit is contained in:
Tatsuhiro Tsujikawa 2015-09-17 22:26:49 +09:00
parent 83ff3de9ae
commit 1c2fcc2a55
1 changed files with 5 additions and 0 deletions

View File

@ -872,6 +872,11 @@ ssize_t parse_proxy_line_port(const uint8_t *first, const uint8_t *last) {
} // namespace
int ClientHandler::on_proxy_protocol_finish() {
if (conn_.tls.ssl) {
conn_.tls.rbuf.append(rb_.pos, rb_.rleft());
rb_.reset();
}
setup_upstream_io_callback();
// Run on_read to process data left in buffer since they are not