Skip to content

Conversation

@afarber
Copy link
Contributor

@afarber afarber commented Jan 22, 2026

Fixes #14327

When a server sends a complete response (e.g., 400 Bad Request with Content-Length: 0) and closes the connection before the client finishes writing, the client now correctly returns the response instead of throwing EOFException.

  • HttpReceiverOverHTTP.earlyEOF(): Check if headers were received and no body is expected before failing with EOF
  • Added HttpClientBadURITest to verify the fix

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Flaky jetty-client behavior against ee11 and bad URLs

1 participant