Commits

Ruslan Osmanov committed b5cc276

Fix: confused BUFFEREVENT_SSL_ACCEPTING/_CONNECTING in classes/http_connection.c

Comments (0)

Files changed (1)

classes/http_connection.c

 		options = BEV_OPT_CLOSE_ON_FREE;
 #endif
 
-		bevent = bufferevent_openssl_socket_new(b->base, -1, ssl, BUFFEREVENT_SSL_ACCEPTING, options);
+		bevent = bufferevent_openssl_socket_new(b->base, -1, ssl, BUFFEREVENT_SSL_CONNECTING, options);
 		if (!bevent) {
 			php_error_docref(NULL TSRMLS_CC, E_ERROR, "Failed to allocate bufferevent filter");
 			return;