mirror of
https://github.com/cuberite/libevent.git
synced 2025-09-13 14:26:30 -04:00
be_openssl: don't add events during bev creation (like be_sock)
Using the following examples you can get changes between be_openssl and be_sock: $ function diff_addr() { eval diff -u $(printf "<(strip_addr %s) " "$@") } $ function strip_addr() { sed 's/0x[a-zA-Z0-9]*/0xFFFF/g' "$@" } $ EVENT_DEBUG_LOGGING_ALL= regress --verbose --no-fork +http/https_connection_retry 2> /tmp/https-retry.log >&2 $ EVENT_DEBUG_LOGGING_ALL= regress --verbose --no-fork +http/connection_retry 2> /tmp/http-retry.log >&2 $ diff_addr /tmp/http-retry.log /tmp/https-retry.log
This commit is contained in:
parent
a96b73b9fd
commit
f4b6284b83
@ -1394,15 +1394,6 @@ bufferevent_openssl_new_impl(struct event_base *base,
|
||||
if (state == BUFFEREVENT_SSL_OPEN)
|
||||
bufferevent_suspend_read_(underlying,
|
||||
BEV_SUSPEND_FILT_READ);
|
||||
} else {
|
||||
struct bufferevent *bev = &bev_ssl->bev.bev;
|
||||
bev->enabled = EV_READ|EV_WRITE;
|
||||
if (state != BUFFEREVENT_SSL_OPEN)
|
||||
if (event_add(&bev->ev_read, NULL) < 0)
|
||||
goto err;
|
||||
if (event_initialized(&bev->ev_write))
|
||||
if (event_add(&bev->ev_write, NULL) < 0)
|
||||
goto err;
|
||||
}
|
||||
|
||||
return &bev_ssl->bev.bev;
|
||||
|
Loading…
x
Reference in New Issue
Block a user