cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: ssl and socket reuse

From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Wed, 9 Nov 2011 01:02:05 -0800

On Tue, Nov 08, 2011 at 11:59:23PM -0800, Sudeep_Das_at_mcafee.com wrote:
> So the situation is that we have a https client server stuff running with
> multiple requests responses?something like this
[...]
> The effect of this is that I end up
>
> a. Opening up a fresh ssl connection for each request response
>
> b. Not reusing session ids
>
> The server folks are unhappy over this and want me to revamp the communication
> to

I'm not surprised :-)

> a. Use the same open descriptor for the entire do_server_communication()
> : I should be able to achieve this moving the init and cleanup calls to
> do_Server_communication(), and use the same handle for multiple calls to
> do_request_response()

That should solve the socket reuse problem nicely.

> b. Reuse the session ids across multiple invocations of
> do_server_communication() : Looks like this cant happen across multiple easy
> handles?Is there anyway I can achieve it ?

This feature has just been added, and will be in the upcoming 7.23.0 release.
If you want to shake it out before the release, you can download the
latest snapshot from http://curl.haxx.se/snapshots/

>>> Dan
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2011-11-09