openssl allow connect multiple packets for SSL_connect
authorKen Atherton <katherton@echofirst.com>
Thu, 3 May 2012 03:45:04 +0000 (11:45 +0800)
committerAndy Green <andy.green@linaro.org>
Thu, 3 May 2012 03:45:04 +0000 (11:45 +0800)
commit8360a47011f6a3eb89c6ef9b593eb4bca935336b
tree18cf4ebd1decfe2e7e01921bef4a09c24db5bc9d
parentcf56e4dd0f8a14b5aa271492978ce8f063b367b6
openssl allow connect multiple packets for SSL_connect

Ken found over the internet with real delays, SSL_connect can
fail to work.  This patch adapts his workaround to stay in the
connect state until we either run out of time for the connect
or succeed.

Signed-off-by: Andy Green <andy.green@linaro.org>
Signed-off-by: Ken Atherton <katherton@echofirst.com>
lib/libwebsockets.c