Browse Source

And this EOF flag...

PEAR_1_4DEV
Wez Furlong 23 years ago
parent
commit
e087da60dc
  1. 5
      ext/openssl/xp_ssl.c

5
ext/openssl/xp_ssl.c

@ -165,9 +165,8 @@ static size_t php_openssl_sockop_read(php_stream *stream, char *buf, size_t coun
if (nr_bytes <= 0) {
retry = handle_ssl_error(stream, nr_bytes TSRMLS_CC);
if (retry == 0 && !SSL_pending(sslsock->ssl_handle)) {
stream->eof = 1;
}
stream->eof = (retry == 0 && !SSL_pending(sslsock->ssl_handle));
} else {
/* we got the data */
break;

Loading…
Cancel
Save