[TLSInterception] Should be able to work without an actual upstream connection #806
abhinavsingh
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is your feature request related to a problem? Please describe.
This is a requirement to serve responses out of cache. See #441 and #442 for some background. In short, when cache plugin is enabled along with TLS interception, plugin avoids upstream connection altogether, returning responses from the cache if found.
Problem If client pipelines requests over connected tunnel (which usually is the case), there will be cases where 1st tunneled request is found in cache, but 2nd tunneled request is not in cache. Resulting into reconnection with the upstream. Designing for this flow can be a PITA.
Describe the solution you'd like
Modify core server code to work without an upstream server connection (at-least when TLS interception is ON). Currently, server throws following exception if a plugin avoids upstream CONNECT connection.
Beta Was this translation helpful? Give feedback.
All reactions