[ 
https://issues.apache.org/jira/browse/HTTPCORE-368?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

offbynull updated HTTPCORE-368:
-------------------------------

    Attachment: SSLIOSession3.patch

Hi Oleg,

Here's (the beginnings) of a second attempt at a patch. There's a strategy 
interface: SSLBufferManagementStrategy. From that there's 
PermanentSSLBufferManagementStrategy and ReleasableSSLBufferManagementStrategy.

The only part I'm having trouble with is figuring out how to trickle down the 
SSLBufferManagementStrategy interface from HttpAsyncClientBuilder to 
SSLIOSession. I've modified SSLIOSessionFactory to do this but there seem to be 
several other classes that instantiate SSLIOSession directly.

Can you provide some guidance on this?

> 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, SSLIOSession3.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-unsubscr...@hc.apache.org
For additional commands, e-mail: dev-h...@hc.apache.org

Reply via email to