|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-04-10 12:58 UTC] sniper@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Oct 27 13:00:01 2025 UTC |
Description: ------------ When using SSL fsockopen and stream_socket_client takes 1.7 seconds to return on WIndows. This seems to be a huge improvement from php-5.0 where it used to take 6.3 to 8.7 seconds for fsockopen to return. The problem occurs only when using ssl, and for tcp connections the speeds are comparable to that on linux. Also the the delay occurs only in the first call in a script, and later calls takes the same time 0.02 seconds, which is again same as that on linux. These are the times for fsockopen on windows and linux: TCP: linux: 0.003 seconds windows: 0.003 seconds SSL: linux: 0.02 Windows: php-5.0: 8.2 seconds Windows: php-5.1: 1.2 seconds Thanks. George. Reproduce code: --------------- <?php fsockopen("ssl://localhost", "443"); Expected result: ---------------- Should return in 0.02 seconds for ssl. Actual result: -------------- Takes too long. For php5.0 the time used to increase when the script becomes larger. This seems to have got solved with php-5.1. IN php-5.1 fsockpen("ssl://localhost") takes 1.2 seconds. Which is around 50 times slower than expected.