axtls: call ssl_read repeatedly
authorFabian Frank <fabian@pagefault.de>
Fri, 14 Feb 2014 09:20:20 +0000 (01:20 -0800)
committerDaniel Stenberg <daniel@haxx.se>
Sun, 16 Feb 2014 22:30:21 +0000 (23:30 +0100)
commit86f266b00495277d3c797ecb565f21d60ac38332
treea22237b72f695f3f0e065e6b39dd970faf716d46
parent79a9f8c94273995cdccbbde87e251f1ea4a2700d
axtls: call ssl_read repeatedly

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).
lib/vtls/axtls.c