title: openssl ssl_connect blocks forever - how to set timeout?
body: <p>when server written in openssl is'nt calling SSL_accept, client's SSL_connect blocks forever.
  There are some timeout functions in openssl -SSL_CTX_set_timeout , SSL_SESSION_set_timeout but these have no effect on SSL_connect.</p>
  
  <p>Is there really no way of setting timeout for SSL_connect when e.g. ssl server is buggy and goes into loop before doing SSL handshake?</p>