Replies: 1 comment
-
I think I see the problem on my end - please ignore for now until I debug more |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm trying to debug some TLS response weirdness I'm seeing. This is with Hyper 1.0.1.
My code takes large payloads from the client (a few MBs to GBs) and then processes results. If it hits an error it will abort early and return an error response to the client after only having read part of the payload.
With HTTP (no TLS) this works perfectly. The client gets the response and handles the abort properly. The moment I add in TLS I see some weird behavior.
I see the same behavior with rustls based streams and openssl based streams, so it doesn't appear to be the TLS library / wrapper.
If I turn on tracing for hyper I see the following on a "good" request:
A bad request looks like:
The only obvious different besides some flushing pattern differences is an extra read after the body receiver is dropped in the bad case.
I'm looking for suggestions on how to debug and root cause this. My guess is we're aborting/closing the connection differently in the two cases but I can't find an obvious place where it diverges in a way that could cause problems.
Suggestions / thoughts on what this might be would be appreciated.
Beta Was this translation helpful? Give feedback.
All reactions