#50312 [Opn->Fbk]: Opening an https using fopen consumes all cpu time
| From: | jani@php.net | Date: | Fri, 27 Nov 2009 18:04:21 +0000 |
| Subject: | #50312 [Opn->Fbk]: Opening an https using fopen consumes all cpu time | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-145129@lists.php.net to get a copy of this message | ||
ID: 50312
Updated by: jani@php.net
Reported By: kvr at centrum dot cz
-Status: Open
+Status: Feedback
Bug Type: HTTP related
Operating System: Linux, Debian
PHP Version: 5.3SVN-2009-11-27 (snap)
New Comment:
Yes, it's the OpenSSL lib doing the read, what's the bug here?
Previous Comments:
------------------------------------------------------------------------
[2009-11-27 17:56:41] kvr at centrum dot cz
Yes, I tried it exactly as written in your example.
The php version was the latest: ~/iphp/bin/php -v
PHP 5.3.2-dev (cli) (built: Nov 27 2009 17:39:57)
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2009 Zend Technologies
Did you check the strace output (or whatever tool your system
provides to trace program syscalls) ? Could you please attach it?
------------------------------------------------------------------------
[2009-11-27 17:48:47] jani@php.net
Well, did you try the short example I provided? That site isn't
exactly "slow" but since you're not providing anything to work with
that's what I tested and that works..
------------------------------------------------------------------------
[2009-11-27 16:57:04] kvr at centrum dot cz
Well, sorry, the URL address was supposed to be replaced with
anything real but preferably slow.
I compiled the php5.3-latest as proposed and the problem is there as
well.
------------------------------------------------------------------------
[2009-11-27 14:31:01] jani@php.net
Unless of course your provided "code" is supposed to work at all?
This works too:
# php -r '$fd = fopen("https://master.php.net/manage/users.php",
"r");'
------------------------------------------------------------------------
[2009-11-27 14:28:31] jani@php.net
Please try using this snapshot:
http://snaps.php.net/php5.3-latest.tar.gz
For Windows:
http://windows.php.net/snapshots/
Works fine for me. Try without any 3rd party patches.
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/50312
--
Edit this bug report at http://bugs.php.net/?id=50312&edit=1