Closed (fixed)
Project:
HTTP Parallel Request & Threading Library
Version:
7.x-1.4
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
29 Jan 2012 at 02:22 UTC
Updated:
19 Feb 2012 at 17:40 UTC
Jump to comment: Most recent file
Comments
Comment #1
hass commentedComment #2
mikeytown2 commentedThe fclose() call can be silenced (@) because fwrite() failed. This patch does this and has been committed to 6.x & 7.x.
As for the warning; if you can create a way to reproduce it reliably that would be helpful. I wonder if stream_select()'s
$exceptarray would have any useful info when this happens.The notice might be fixed with some of the other changes that went in today.
Comment #3
hass commentedAdd this to your httprl.admin.inc and run the "admin/config/development/httprl" page...
NOTE: The Apple URL goes completely lost... the others have no status codes in responds array. I have tested with latest DEV.
Notice:
Comment #4
hass commentedmax_redirects counter in options array is pretty strange... maybe the source of the issues. With max_redirects = 1: empty array
Comment #5
hass commentedPlease compare the results. If there are multiple redirects httprl shows them all in code and error subarrays, but core does only show the last status code and error.
Comment #6
hass commentedCritical for next release.
Comment #7
mikeytown2 commentedI can repo the bug with your code. Thanks for reporting! I'll be going to bed though; its 2am here.
Comment #8
mikeytown2 commentedThis patch has been committed. Thanks for taking the time to get this right!
Comment #9
mikeytown2 commentedComment #10
hass commentedThe bug with 'http://www.apple.com/qtactivex/qtplugin.cab' is not fixed at all. My debugging shows that it tries 2 redirects and then it stops processing with 'maximum allowed redirects exhausted'.
This is incorrect behavior. As you can see in the options array I have defined
'max_redirects' => 1. This must cause httprl to STOP processing after the first redirect and give me the first returned redirect code in the responds array. It's not allowed to follow more redirects and it is not correct to tell me 'maximum allowed redirects exhausted'. Compare to core, please.Comment #11
hass commentedComment #12
hass commentedLet's followup up the other bug in #1429284: "2 maximum allowed redirects are exhausted" logged, inconsistent with core