You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by "Pierre N. (Jira)" <ji...@apache.org> on 2021/05/08 16:19:00 UTC

[jira] [Created] (HTTPCORE-677) Don't throw ConnectionClosedException when connection close is expected

Pierre N. created HTTPCORE-677:
----------------------------------

             Summary: Don't throw ConnectionClosedException when connection close is expected
                 Key: HTTPCORE-677
                 URL: https://issues.apache.org/jira/browse/HTTPCORE-677
             Project: HttpComponents HttpCore
          Issue Type: Improvement
          Components: HttpCore
    Affects Versions: 5.1
            Reporter: Pierre N.
             Fix For: 5.1.1


I'm testing apache core to replace Undertow in my web app so maybe I configured badly but I noticed the server is throwing an exception in ExceptionListener every time a client connection is closed.

Is it necessary ? Is it really exceptional ? Do we really need to build a full stacktrace every time a socket is closed because it happens a lot.

The connection is expected to be closed at some point, I understand an exception could be thrown if it occurs will reading the request or the request body, but if the request has been read, I think it is not exceptional and it shouldn't throw.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org