|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2008-07-08 01:39 UTC] kalle@php.net
[2008-07-14 21:09 UTC] jani@php.net
[2008-07-22 01:00 UTC] php-bugs at lists dot php dot net
[2009-02-11 21:36 UTC] felipe@php.net
[2009-02-19 01:00 UTC] php-bugs at lists dot php dot net
[2009-07-01 19:41 UTC] korvus at comcast dot net
[2011-09-21 20:13 UTC] korvus at comcast dot net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 21 23:00:01 2025 UTC |
Description: ------------ On unusually slow ssl connects, we get a timeout message even through the connect succeeded. The offending code appears to be around line 816 of xp_ssl.c version 1.37 (the bug appears to have been around since 1.28) struct timeval tvs, tve; struct timezone tz; gettimeofday(&tvs, &tz); n = SSL_connect(sslsock->ssl_handle); gettimeofday(&tve, &tz); timeout -= (tve.tv_sec + tve.tv_usec / 1000000) - (tvs.tv_sec + tvs.tv_usec / 1000000); if (timeout < 0) { php_error_docref(NULL TSRMLS_CC, E_WARNING, "SSL: connection timeout"); return -1; } The timeout is checked before the success value. A fix would be to only check the timeout when deciding to loop again. Reproduce code: --------------- Peg the cpu of the test machine, attempt to make several ssl connections out.