hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "offbynull (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HTTPCORE-368) Smarter use of buffers in SSLIOSession
Date Sat, 14 Dec 2013 16:27:06 GMT

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

offbynull commented on HTTPCORE-368:
------------------------------------

"Comet is a web application model in which a long-held HTTP request allows a web server to
push data to a browser, without the browser explicitly requesting it." -- http://en.wikipedia.org/wiki/Comet_(programming)

I didn't invent comet, nor did I invent the concept of load testing. However, they're both
common enough that this should have been a predicted use-case for httpcomponents.

I'll see if I can revise the patch to better match your description of a solution.

> Smarter use of buffers in SSLIOSession
> --------------------------------------
>
>                 Key: HTTPCORE-368
>                 URL: https://issues.apache.org/jira/browse/HTTPCORE-368
>             Project: HttpComponents HttpCore
>          Issue Type: Improvement
>          Components: HttpCore NIO
>    Affects Versions: 4.3-beta2
>            Reporter: offbynull
>              Labels: patch
>         Attachments: SSLIOSession.patch
>
>
> We're using the async client to load test our comet infrastructure. We're frequently
running in to OutOfMemoryErrors due to the ByteBuffers allocated in SSLIOSession.
> The following is a quick-and-dirty patch to SSLIOSession that removes the buffers when
they aren't needed. Could we get this (or something similar to this) added in to httpcore-nio?



--
This message was sent by Atlassian JIRA
(v6.1.4#6159)

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


Mime
View raw message