ID:               36615
 Updated by:       [EMAIL PROTECTED]
 Reported By:      georgechianrs at gmail dot com
-Status:           Open
+Status:           Bogus
 Bug Type:         Streams related
 Operating System: Windows
 PHP Version:      5.1.2
 New Comment:

Glad that it got better.


Previous Comments:
------------------------------------------------------------------------

[2006-03-05 05:10:41] georgechianrs at gmail dot com

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.


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=36615&edit=1

Reply via email to