fixed a minor ssl handling issue

This commit is contained in:
hyung-hwan 2013-03-21 12:51:13 +00:00
parent 52071e8ab0
commit 0ae8ba8f28

View File

@ -1765,7 +1765,8 @@ static int client_accepted (qse_httpd_t* httpd, qse_httpd_client_t* client)
if (ret <= 0)
{
int err;
if ((err = SSL_get_error(ssl,ret)) == SSL_ERROR_WANT_READ)
err = SSL_get_error(ssl,ret);
if (err == SSL_ERROR_WANT_READ || err == SSL_ERROR_WANT_WRITE)
{
/* handshaking isn't complete. */
return 0;