Skip to content

Commit

Permalink
Remove early read on TLS upgrade
Browse files Browse the repository at this point in the history
Signed-off-by: Eloi DEMOLIS <eloi.demolis@clever-cloud.com>
  • Loading branch information
Wonshtrum committed Oct 24, 2023
1 parent be2cfe6 commit 8595cf9
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions lib/src/https.rs
Original file line number Diff line number Diff line change
Expand Up @@ -311,23 +311,6 @@ impl HttpsSession {
)
.ok()?;

match http
.frontend_socket
.session
.reader()
.read(http.request_stream.storage.space())
{
Ok(sz) => {
//info!("rustls upgrade: there were {} bytes of plaintext available", sz);
http.request_stream.storage.fill(sz);
count!("bytes_in", sz as i64);
self.metrics.bin += sz;
}
Err(e) => {
error!("read error: {:?}", e);
}
}

http.frontend_readiness.event = handshake.frontend_readiness.event;

gauge_add!("protocol.https", 1);
Expand Down

0 comments on commit 8595cf9

Please sign in to comment.