Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(http): fix HTTP protocol errors following non-successful requests #4125

Merged
merged 23 commits into from Jan 19, 2024

Conversation

ideoma
Copy link
Collaborator

@ideoma ideoma commented Jan 12, 2024

In some cases, the HTTP server used to not read the full requests message before sending back 404 or 400 errors.
This is HTTP protocol violation and may lead to unexpected TCP disconnects before the client can get the response code from the server.

@ideoma ideoma added the tandem label Jan 12, 2024
@ideoma
Copy link
Collaborator Author

ideoma commented Jan 19, 2024

[PR Coverage check]

😍 pass : 138 / 170 (81.18%)

file detail

path covered line new line coverage
🔵 io/questdb/network/HeartBeatException.java 0 1 00.00%
🔵 io/questdb/cutlass/http/processors/StaticContentProcessor.java 3 10 30.00%
🔵 io/questdb/cutlass/http/HttpServer.java 10 13 76.92%
🔵 io/questdb/cutlass/http/WaitProcessor.java 17 22 77.27%
🔵 io/questdb/cutlass/http/HttpConnectionContext.java 70 83 84.34%
🔵 io/questdb/network/IOContext.java 6 7 85.71%
🔵 io/questdb/cutlass/line/tcp/LineTcpNetworkIOJob.java 6 7 85.71%
🔵 io/questdb/cutlass/pgwire/PGWireServer.java 8 9 88.89%
🔵 io/questdb/cutlass/http/processors/LineHttpProcessor.java 1 1 100.00%
🔵 io/questdb/cutlass/http/HttpHeaderParser.java 1 1 100.00%
🔵 io/questdb/network/AbstractIODispatcher.java 1 1 100.00%
🔵 io/questdb/cutlass/http/processors/LineHttpPingProcessor.java 1 1 100.00%
🔵 io/questdb/cutlass/http/HttpResponseSink.java 11 11 100.00%
🔵 io/questdb/cutlass/http/processors/TableStatusCheckProcessor.java 2 2 100.00%
🔵 io/questdb/cairo/TableNameRegistryStore.java 1 1 100.00%

@ideoma ideoma merged commit 6119117 into master Jan 19, 2024
21 checks passed
@ideoma ideoma deleted the fix-http-reject-protocol-violation branch January 19, 2024 12:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants