From: Enlightenment S. <no-...@en...> - 2010-09-30 01:51:04
|
Log: add fd flags for openssl Author: discomfitor Date: 2010-09-29 18:50:58 -0700 (Wed, 29 Sep 2010) New Revision: 52915 Modified: trunk/ecore/src/lib/ecore_con/ecore_con_ssl.c Modified: trunk/ecore/src/lib/ecore_con/ecore_con_ssl.c =================================================================== --- trunk/ecore/src/lib/ecore_con/ecore_con_ssl.c 2010-09-30 01:01:41 UTC (rev 52914) +++ trunk/ecore/src/lib/ecore_con/ecore_con_ssl.c 2010-09-30 01:50:58 UTC (rev 52915) @@ -1029,6 +1029,13 @@ svr->handshaking = EINA_FALSE; svr->ssl_state = ECORE_CON_SSL_STATE_DONE; } + else + { + if (err == SSL_ERROR_WANT_READ) + ecore_main_fd_handler_active_set(svr->fd_handler, ECORE_FD_READ); + else if (err == SSL_ERROR_WANT_WRITE) + ecore_main_fd_handler_active_set(svr->fd_handler, ECORE_FD_WRITE); + } default: break; } @@ -1261,6 +1268,13 @@ cl->handshaking = EINA_FALSE; cl->ssl_state = ECORE_CON_SSL_STATE_DONE; } + else + { + if (err == SSL_ERROR_WANT_READ) + ecore_main_fd_handler_active_set(cl->fd_handler, ECORE_FD_READ); + else if (err == SSL_ERROR_WANT_WRITE) + ecore_main_fd_handler_active_set(cl->fd_handler, ECORE_FD_WRITE); + } default: break; } |