Skip to content

Commit 1482ed2

Browse files
committed
reneg and should_close are not yet members of sslsock. Removing...
1 parent fd46416 commit 1482ed2

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

ext/openssl/xp_ssl.c

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -242,15 +242,7 @@ static size_t php_openssl_sockop_io(int read, php_stream *stream, char *buf, siz
242242

243243
/* Now, do the IO operation. Don't block if we can't complete... */
244244
if (read) {
245-
nr_bytes = SSL_read(sslsock->ssl_handle, buf, count);
246-
247-
if (sslsock->reneg && sslsock->reneg->should_close) {
248-
/* renegotiation rate limiting triggered */
249-
php_stream_xport_shutdown(stream, (stream_shutdown_t)SHUT_RDWR);
250-
nr_bytes = 0;
251-
stream->eof = 1;
252-
break;
253-
}
245+
nr_bytes = SSL_read(sslsock->ssl_handle, buf, count);
254246
} else {
255247
nr_bytes = SSL_write(sslsock->ssl_handle, buf, count);
256248
}

0 commit comments

Comments
 (0)