proxy.py icon indicating copy to clipboard operation
proxy.py copied to clipboard

[HttpProtocolHandler] Access logs must be logged after request completion (not after connection close)

Open abhinavsingh opened this issue 4 years ago • 0 comments

Summarized below are the cases that we need to handle to individually log h1 pipeline/h2 stream access logs as they finish and not after the connection is closed.

TL;DR

Except for Proxy Tunnel scenarios, we can always achieve the objective of this task.

Proxy Tunnel

In scenarios where client is establishing a HTTPS tunnel to upstream server, there is no way to detect when a certain (h1 pipelines/h2 stream) request has finished.

In TLS Interception mode, yes we can.

HTTP Proxy

For HTTP request proxy, yes we can.

Web Server

For web servers, yes we can.

abhinavsingh avatar Dec 29 '21 10:12 abhinavsingh