Issue Type: Bug Created: 2008-10-10T22:00:51.000+0000 Last Updated: 2008-11-13T14:10:30.000+0000 Status: Resolved Fix version(s): - 1.7.0 (17/Nov/08)
Reporter: Trevor Johns (tjohns) Assignee: Trevor Johns (tjohns) Tags: - Zend_Http_Client
Related issues: Attachments: - capture.txt
Zend_Gdata_GdataOnlineTest::testPostRetrieveEntryAndDelete is failing on my machine:
<pre class="highlight">testPostRetrieveEntryAndDelete(Zend_Gdata_GdataOnlineTest) Zend_Gdata_App_HttpException: Unable to read response, or response is empty library/Zend/Gdata/App.php:483 library/Zend/Gdata.php:201 library/Zend/Gdata/App.php:610 library/Zend/Gdata/App.php:541 library/Zend/Gdata/App.php:159 library/Zend/Gdata.php:169
I'm tracked the breakage to r11768. I'm currently attempting to isolate the cause.
Posted by Trevor Johns (tjohns) on 2008-10-10T22:34:40.000+0000
Attaching packet capture.
This part is interesting:
<pre class="highlight">No. Time Source Destination Protocol Info 17 0.453789 172.19.246.207 18.104.22.168 TCP [TCP segment of a reassembled PDU] 18 0.535081 22.214.171.124 172.19.246.207 TCP http > 49705 [ACK] Seq=1769 Ack=681 Win=7040 Len=0 TSV=3186164309 TSER=299462861 19 0.548198 126.96.36.199 172.19.246.207 TCP http > 49706 [ACK] Seq=1 Ack=443 Win=6784 Len=0 TSV=3185779522 TSER=299462861 20 20.454967 172.19.246.207 188.8.131.52 TCP 49706 > http [FIN, ACK] Seq=443 Ack=1 Win=524280 Len=0 TSV=299463061 TSER=3185779522
It seems that my client begins a request, the server ACKs, and then nothing happens for 20 seconds until my client sends a FIN.
(172.19.246.207 = me, 184.108.40.206 = remote server)
Posted by Trevor Johns (tjohns) on 2008-10-10T23:10:40.000+0000
Alright, it seems that there's a problem has to do with the Content-Length HTTP header.
If, in Zend_Http_Client, I change:
const CONTENT_LENGTH = 'Content-Length';
const CONTENT_LENGTH = 'content-length';
then the test passes. (This would be a partial revert of r11768.)
Posted by Trevor Johns (tjohns) on 2008-10-11T00:34:31.000+0000
Moving to component Zend_Http_Client.
The problem was that Zend_Http_Client's internal header's array is indexed by lowercase header names, regardless of the actual header. The changes in r11768 were looking up headers using a non-normalized name, which would always fail.
Fixed in r11857.
Posted by Alexander Veremyev (alexander) on 2008-10-11T13:02:21.000+0000
Fixed also for the 1.6.2 (r11880).
Posted by Wil Sinclair (wil) on 2008-11-13T14:10:30.000+0000
Changing issues in preparation for the 1.7.0 release.
Have you found an issue?
See the Overview section for more details.