curl-library
Re: SSL certificates and increasing memory usage
Date: Tue, 20 Aug 2013 10:39:02 +0200 (CEST)
On Mon, 19 Aug 2013, Jerry Blakley wrote:
> What seems to be happening is that while the session is open and the
> connection reused, we make the repeated allocations in nss_create_object,
> increasing memory usage, until the session ends and curl_easy_cleanup is
> called.
>
> Is this the case, and should it be so? Or is there/should there be some
> intermediary cleanup routine, or an ability to reuse the certificate
> information without the reallocation?
Hi,
I'm not an NSS expert but it looks to me like there's no need to reload the
cert/key when the connection is re-used (as it is only re-used when the same
cert/key is set). What about a patch like the attached?
-- / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
- TEXT/X-DIFF attachment: 0001-NSS-don-t-load-keys-certs-with-re-used-connections.patch