Skip to content

Conversation

@cdw8j
Copy link
Contributor

@cdw8j cdw8j commented Sep 12, 2025

The RequestListener thread terminates when an exception occurs during connection creation or in the worker thread. Specifically, I have noticed this issue simply when an http connection is attempted to an HttpServer with SSLContext - the server essentially terminates.

So instead of throwing the corresponding exception, it should be handled by the application's exceptionListener.

(This is also how it was implemented in httpcore4.)

@ok2c ok2c changed the title Fix unwanted RequestListener termination Bug fix: Classic RequestListener to continue accepting incoming connections in case of an unexpected exception caused by a single connection Sep 13, 2025
@ok2c ok2c merged commit b296ae9 into apache:5.3.x Sep 13, 2025
8 checks passed
@ok2c
Copy link
Member

ok2c commented Sep 13, 2025

@cdw8j Cherry-picked to master

@cdw8j cdw8j deleted the fix/unwanted-requestlistener-termination branch September 13, 2025 17:58
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.

2 participants