php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | |
Patch ssl_read_timeout-5.4.32.patch for OpenSSL related Bug #41631Patch version 2014-09-29 18:44 UTC Return to Bug #41631 | Download this patchThis patch renders other patches obsolete Obsolete patches: Patch Revisions: 2014-09-29 18:44 UTC | 2014-09-26 18:38 UTCDeveloper: askalski@synacor.com+ char buf; + + assert(sslsock->incomplete_write == NULL); + + while ((nr_bytes = SSL_read(sslsock->ssl_handle, &buf, sizeof(buf))) <= 0) { + while ((nr_bytes = SSL_peek(sslsock->ssl_handle, &buf, sizeof(buf))) <= 0) { + retry = handle_ssl_error(stream, nr_bytes, was_blocked TSRMLS_CC); + if (retry == SSL_ERROR_WANT_WRITE) { + if (!php_openssl_wait(&sslsock->s, POLLOUT, timeout TSRMLS_CC)) { + break; |
Copyright © 2001-2024 The PHP Group All rights reserved. |
Last updated: Fri Apr 26 11:01:31 2024 UTC |