ID:               46685
 Comment by:       scott dot php at scottrix dot co dot uk
 Reported By:      scott dot php at scottrix dot co dot uk
 Status:           No Feedback
 Bug Type:         Performance problem
 Operating System: Linux
 PHP Version:      5.2.6
 New Comment:

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.


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

[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.

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

[2008-11-26 12:22:53] scott dot php at scottrix dot co dot uk

I don't see how the script is relevant.  You should never sit in a busy
loop like this no matter what the php script is doing.

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

[2008-11-26 11:12:20] [EMAIL PROTECTED]

You can do non blocking operations in php as well. 

Sorry to insist, but please provide a reproduce case (a script). I'm
not saying that your patch is wrong or not necessary, but it may be
possible already without changes.

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

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/46685

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

Reply via email to