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

 ID:               46685
 Comment by:       askalski at gmail dot com
 Reported by:      scott dot php at scottrix dot co dot uk
 Summary:          SSL code should use select
 Status:           Assigned
 Type:             Bug
 Package:          OpenSSL related
 Operating System: *
 PHP Version:      5.*, 6
 Assigned To:      rasmus

 New Comment:

Any progress on this ticket?  We've begun encountering this bug somewhat
regularly, whenever one of our third-party SOAP services has problems. 
The symptom is our entire cluster of PHP servers redlines the CPU for
the duration of the SOAP outage.



Do you still need a test case reduction?  I have reproduced the issue in
the latest PHP 5.2 and 5.3 releases.



In the meantime, I am going to look over the original submitter's
proposed patch, and use that to fix our immediate problem.


Previous Comments:
------------------------------------------------------------------------
[2009-11-27 18:44:53] [email protected]

assigned to Rasmus, looks like he is willing to figure out the cause and
improve this patch.

------------------------------------------------------------------------
[2008-11-26 13:36:31] scott dot php at scottrix dot co dot uk

Seems to me you don't understand, I could easily have found this with a
code walk and would not have any test case.  The way you are using the
SSL libraries is (IMO and the openssl examples) wrong.  Doesn't matter
if it has any effects on running scripts, it is still wrong.  I DO
understand that you will want a test to show it has been fixed, but this
isn't possible with all coding problems as I'm sure you know, the main
thing from a change like this is that it doesn't break any of the
existing tests and regression tests that you already have. (or anybody
else code that is out there....)



The only test I have that shows the problem is an strace on a running
script.  I don't have permission to release that script and you don't
have the server pages and software that the script runs against, so
would be useless anyway.  I would try to create one, but I personally
don't know PHP so can't.  Given the problem I would imagine that any PHP
script that is talking SSL and having to wait for data to come back
would have the same problem (viewable by strace output).



Anyway, if you NEED more to be able to apply a patch and test it, then I
guess you can close this bug.  The important thing for me is that I have
tried to get someone upstream interested in writing better code, and
that it is searchable so that others that experience the problem can
find it and try my fix.

------------------------------------------------------------------------
[2008-11-26 13:19:34] [email protected]

You get it wrong.



A patch can and will be applied when tests are provided as well. The
goal is not only to be able to reproduce a possible issue, but also to
be sure about the patch is trying to fix.



You do not want to provide them and I'm not sure your patch is the right
to do it (as already said, that does not mean it is wrong). So this bug
has now in a "no feedback" status, until you have figured out that what
I asked is relevent.



That's a relatively simple process, isn't it?

------------------------------------------------------------------------
[2008-11-26 13:13:58] scott dot php at scottrix dot co dot uk

I didn't submit the patch to help me, I already have the fix for the
problem.  If you aren't interested then that is fine.  Just thought I'd
try and give something back to you guys.  Next time I won't bother.

------------------------------------------------------------------------
[2008-11-26 13:07:36] [email protected]

your choice >  no feedback.

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


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/bug.php?id=46685


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

Reply via email to