We are using jetty-6.1.26 HTTP client to post messages to an Microsoft IIS
Server using client certificate based authentication.



The code fragment used is as below:



        httpClient.setConnectorType(HttpClient.CONNECTOR_SELECT_CHANNEL);


        httpClient.setMaxConnectionsPerAddress(1);

        httpClient.setMaxRetries(0);

        httpClient.setSoTimeout(soTimeout);

        httpClient.setTimeout(timeout);

            httpClient.setKeyStoreLocation(ksl);

            httpClient.setKeyStorePassword(ksp);

            httpClient.setKeyManagerPassword(kmp);



        contentExchange = new ContentExchange(true);

        contentExchange.setRetryStatus(false);



int result = contentExchange.waitForDone();

                        if(result ==  HttpExchange.STATUS_COMPLETED)

                        {





We use the httpclient to post data to the server frequently. Since this
software is on low bandwidth connection, we would like to resume SSL
session and not incur the overhead of SSL handshake every time we send
data.



We have tried to increase the *idleTimeout *parameter to large values, but
it seems the SSL session expires always after 2 minutes and few seconds no
matter what settings we maintain. Following is what we get in the
javax.net.debug trace after this session expires and then again the
complete SSL handshake takes place that is a lot of data to and fro on low
BW connections.



*1633060093@HttpClient-3, called closeOutbound()*

*1633060093@HttpClient-3, closeOutboundInternal()*

*1633060093@HttpClient-3, SEND TLSv1 ALERT:  warning, description =
close_notify*



Can someone help us to figure out a correct way to do this?





Thanks a lot in advance!!
_______________________________________________
jetty-users mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/jetty-users

Reply via email to