You are viewing a plain text version of this content. The canonical link for it is here.
Posted to soap-user@ws.apache.org by Luke Galea <lg...@bluecatnetworks.com> on 2003/02/04 17:42:21 UTC
Keeping socket open between calls
Hello!! I am trying to make Apache SOAP keep my ssl socket open in
between calls in order to prevent un-needed handshaking.
Has anyone had success doing something similar? I am currently trying to
use a custom SSLSocketFactory without much success.. perhaps a new
transport would work? Why isn't something like this included or
available anywhere?
Thanks in advance
Luke Galea
Software Development
BlueCat <http://www.bluecatnetworks.com/> Networks
905-762-5225
Re: Keeping socket open between calls
Posted by Scott Nichol <sn...@scottnichol.com>.
Apache SOAP explicitly closes sockets after each request as it does
not support HTTP keep-alives.
The frequent handshaking is, I believe, caused by JSSE or JDK 1.4
marking cached sessions as stale very quickly. I have run tests in
which a cached SSL session is re-used anywhere from 0 to 6 times out
of 10. I have not figured out a way to control this.
On 4 Feb 2003 at 11:42, Luke Galea wrote:
>
> Hello!! I am trying to make Apache SOAP keep my ssl socket open in
> between calls in order to prevent un-needed handshaking.
>
> Has anyone had success doing something similar? I am currently trying
> to use a custom SSLSocketFactorywithout much success.. perhapsa new transport would work? Why
> isn™t something like this included or available anywhere?
>
> Thanks in advance
>
> Luke Galea
> Software Development
> BlueCat Networks
> 905-762-5225
>
>
Scott Nichol