You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by "ASF subversion and git services (Jira)" <ji...@apache.org> on 2022/07/08 17:49:00 UTC

[jira] [Commented] (HTTPCORE-716) High CPU usage noticed for HTTPS GET requests with large payload

    [ https://issues.apache.org/jira/browse/HTTPCORE-716?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17564384#comment-17564384 ] 

ASF subversion and git services commented on HTTPCORE-716:
----------------------------------------------------------

Commit 211c21f86f27c8cc786a621fef2e1fdf3dc6b126 in httpcomponents-core's branch refs/heads/4.4.x from Oleg Kalnichevski
[ https://gitbox.apache.org/repos/asf?p=httpcomponents-core.git;h=211c21f86 ]

HTTPCORE-716: Evict remaining decrypted input data from SSL I/O session buffers upon session closure. With unexpected input in the session buffers I/O reactors could end up in a tight loop causing excessive CPU utilization


> High CPU usage noticed for HTTPS GET requests with large payload
> ----------------------------------------------------------------
>
>                 Key: HTTPCORE-716
>                 URL: https://issues.apache.org/jira/browse/HTTPCORE-716
>             Project: HttpComponents HttpCore
>          Issue Type: Bug
>          Components: HttpCore NIO
>    Affects Versions: 4.4.14, 4.4.15
>            Reporter: Sanoj Punchihewa
>            Priority: Major
>         Attachments: HTTPCORE.postman_collection.json, HttpNIOTestServer.jar, HttpNIOTestServer.zip, HttpNIOTestServer2.zip, testclient 2.zip, testclient.jar
>
>
> We are using 4.4.14 of HttpCore NIO. We are having an issue while sending an *HTTPS GET* request to the server with a large payload where the CPU usage seems to increase and stays on forever. We debugged and found out that after the HTTPS response is written back to the client, the server tries to close the connection. We found out that the condition [1] which gets executed in order to make the state closed becomes false forever and hence it keeps on trying to close. It was observed that inPlain.hasData() is always true.
> We have attached a sample POSTMAN request and a server in order to reproduce the issue.
> Appreciate your help on this issue.
> [1]-[https://github.com/apache/httpcomponents-core/blob/rel/v4.4.14/httpcore-nio/src/main/java/org/apache/http/nio/reactor/ssl/SSLIOSession.java#L388]
> Thanks,
> Sanoj



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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