cURL / Mailing Lists / curl-library / Single Mail

curl-library

[PATCH] axtls: call ssl_read repeatedly

From: Fabian Frank <fabian.frank.de_at_gmail.com>
Date: Fri, 14 Feb 2014 01:46:10 -0800

Hi Guys,

Attached is a patch that helps libcurl users work around axtls’ lack of progress notification in its asynchronous handshake interface:
Perform more work in between sleeps. This is work around the
fact that axtls does not expose any knowledge about when work needs
to be performed. Depending on connection and how often perform is
being called this can save ~25% of time on SSL handshakes (measured
on 20ms latency connection calling perform roughly every 10ms).

I am not sure if this is the best work around, it would definitely be better to change axtls itself to expose at least if it wants to read or write, so that the correct socket could be exposed via curl_multi_fdset. The lack of a select()-able socket results in OpenSSL being 2-5x faster at SSL handshakes when used in libcurl compared to axtls.

Regards,
Fabian

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html

Received on 2014-02-14