From: Azat Khuzhin Date: Thu, 5 Nov 2015 23:24:28 +0000 (+0300) Subject: test/http: allow dirty shutdown for ssl to fix https_incomplete X-Git-Tag: release-2.1.6-beta~90^2~25^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1ede3262cc8f0cde927147d9b5bf1cd810f5af67;p=libevent test/http: allow dirty shutdown for ssl to fix https_incomplete --- diff --git a/test/regress_http.c b/test/regress_http.c index bd8268c8..a419cabb 100644 --- a/test/regress_http.c +++ b/test/regress_http.c @@ -438,14 +438,18 @@ static struct bufferevent * create_bev(struct event_base *base, int fd, int ssl) { int flags = BEV_OPT_DEFER_CALLBACKS; + struct bufferevent *bev; if (!ssl) { - return bufferevent_socket_new(base, fd, flags); + bev = bufferevent_socket_new(base, fd, flags); } else { SSL *ssl = SSL_new(get_ssl_ctx()); - return bufferevent_openssl_socket_new( + bev = bufferevent_openssl_socket_new( base, fd, ssl, BUFFEREVENT_SSL_CONNECTING, flags); + bufferevent_openssl_set_allow_dirty_shutdown(bev, 1); } + + return bev; } static void