mirror of
https://github.com/cuberite/libevent.git
synced 2025-09-13 14:26:30 -04:00
Disable whichever struct event we don't want during ssl handshaking.
svn:r1417
This commit is contained in:
parent
58b0708e18
commit
46a61869ca
@ -808,16 +808,16 @@ do_handshake(struct bufferevent_openssl *bev_ssl)
|
||||
print_err(err);
|
||||
switch (err) {
|
||||
case SSL_ERROR_WANT_WRITE:
|
||||
/* XXXX we only want to do this for the socket case.
|
||||
stop_reading(bev_ssl);
|
||||
start_writing(bev_ssl);
|
||||
*/
|
||||
if (!bev_ssl->underlying) {
|
||||
stop_reading(bev_ssl);
|
||||
start_writing(bev_ssl);
|
||||
}
|
||||
return 0;
|
||||
case SSL_ERROR_WANT_READ:
|
||||
/* XXXX we only want to do this for the socket case.
|
||||
stop_reading(bev_ssl);
|
||||
start_writing(bev_ssl);
|
||||
*/
|
||||
if (!bev_ssl->underlying) {
|
||||
stop_writing(bev_ssl);
|
||||
start_reading(bev_ssl);
|
||||
}
|
||||
return 0;
|
||||
default:
|
||||
conn_closed(bev_ssl, err, r);
|
||||
|
Loading…
x
Reference in New Issue
Block a user