Re: curl_exec won't return (any data)
| From: | Tolas Anon | Date: | Tue, 08 Feb 2011 22:03:43 +0000 |
| Subject: | Re: curl_exec won't return (any data) | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-311221@lists.php.net to get a copy of this message | ||
On Tue, Feb 8, 2011 at 11:01 PM, Tolas Anon <tolas777@gmail.com> wrote:
> Ok, another run, this time after adding the following to
> php_daemon_script;
>
> curl_setopt($ch, CURLOPT_HTTPHEADER, array(
> 'Connection: Keep-Alive',
> 'Keep-Alive: 300'
> ));
>
> Exec-sum:
> No change whatsoever in behaviour, curl_exec still freezes after
> processing the 2gb file completely. ~maus was right.
>
> Since i create the "folder" in the cms to hold the media-imported
> files before starting the import, i can view the offending 2gb video
> as an end-user of my cms. but files that were behind the 2gb video
> in the queue never get imported because curl_exec (or something
> feeding it) has frozen.
>
> It could be that apache sends the wrong packets, or libcurl rejects
> 'good' packets, or libcurl just froze completely. I might not have
> thought of all possibilities though, that's one of the reasons I
> post these mails.
>
> I've run out of ideas again..
> And since i've been at it since 05:00, i'll get some sleep now..
>
> opening bell of 2gb import, microsoft network monitor 3.4 again:
>
>
> 89268 21:48:23 8-2-2011 314.7693867 Unavailable-4920
>
> InternetDomainNameOfApacheServer WindowsNameOfApacheServer
>
> HTTP HTTP:Request, POST /site/cms/php/php_(import_)script.php,
>
> Query:PHPSESSID=bhgnqukbn4v0dbbv25i14ca2o4&action=batchNext
>
> {HTTP:112, TCP:110, IPv4:1} {{ALL GOOD DATA}}
>
>
> And the closing bell (the omissions are there because i let the
>
> sniffer app filter by process id -> ip-address) :
>
> 363 22:31:16 8-2-2011 676.1139552 Unavailable-4920
> WindowsNameOfApacheServer InternetDomainOfApacheServer HTTP
> HTTP:Response, HTTP/1.1, Status: Ok, URL:{OMMITTED BECAUSE OF MEMORY
> EXHAUSTION->KILL OF SNIFFER APP} {HTTP:31, TCP:30, IPv4:29}
> {{CONTAINS THE WANTED DATA}}
>
> 367 22:31:19 8-2-2011 679.1089487 Unavailable-4920
> WindowsNameOfApacheServer InternetDomainOfApacheServer TCP
> TCP:[ReTransmit #363]Flags=...AP..., SrcPort=HTTP(80), DstPort=8372,
> PayloadLen=614, Seq=3326586000 - 3326586614, Ack=3291710338, Win=260
> {TCP:30, IPv4:29}
>
> 372 22:31:21 8-2-2011 681.6189851 Unavailable-4920
> WindowsNameOfApacheServer InternetDomainOfApacheServer TCP
> TCP:Flags=...A...F, SrcPort=HTTP(80), DstPort=8372, PayloadLen=0,
> Seq=3326586614, Ack=3291710338, Win=260 {TCP:30, IPv4:29}
>
> 376 22:31:25 8-2-2011 685.1089219 Unavailable-4920
> WindowsNameOfApacheServer InternetDomainOfApacheServer TCP
> TCP:[ReTransmit #363]Flags=...AP..F, SrcPort=HTTP(80), DstPort=8372,
> PayloadLen=614, Seq=3326586000 - 3326586615, Ack=3291710338, Win=260
> {TCP:30, IPv4:29}
>
> 384 22:31:37 8-2-2011 697.1089168 Unavailable-4920
> WindowsNameOfApacheServer InternetDomainOfApacheServer TCP
> TCP:[ReTransmit #363]Flags=...AP..F, SrcPort=HTTP(80), DstPort=8372,
> PayloadLen=614, Seq=3326586000 - 3326586615, Ack=3291710338, Win=260
> {TCP:30, IPv4:29}
>
> 400 22:32:01 8-2-2011 721.1089938 Unavailable-4920
> WindowsNameOfApacheServer InternetDomainOfApacheServer TCP
> TCP:[ReTransmit #363]Flags=...AP..F, SrcPort=HTTP(80), DstPort=8372,
> PayloadLen=614, Seq=3326586000 - 3326586615, Ack=3291710338, Win=260
> {TCP:30, IPv4:29}
>
> 431 22:32:49 8-2-2011 769.1090750 Unavailable-4920
> WindowsNameOfApacheServer InternetDomainOfApacheServer TCP
> TCP:[ReTransmit #363]Flags=...AP..F, SrcPort=HTTP(80), DstPort=8372,
> PayloadLen=614, Seq=3326586000 - 3326586615, Ack=3291710338, Win=260
> {TCP:30, IPv4:29}
>
> 485 22:33:49 8-2-2011 829.1041446 Unavailable-4920
> WindowsNameOfApacheServer InternetDomainOfApacheServer TCP
> TCP:Flags=...A.R.., SrcPort=HTTP(80), DstPort=8372, PayloadLen=0,
> Seq=3326586615, Ack=3291710338, Win=0 {TCP:30, IPv4:29}
>
> 550 22:35:38 8-2-2011 938.7487524 Unavailable-676
> WindowsNameOfApacheServer InternetDomainOfApacheServer TCP
> TCP:Flags=...A.R.., SrcPort=8372, DstPort=HTTP(80), PayloadLen=0,
> Seq=3291710338, Ack=3326586000, Win=0 {TCP:59, IPv4:29}
>
> 551 22:35:38 8-2-2011 938.7514250 Unavailable-4920
> InternetDomainOfApacheServer WindowsNameOfApacheServer TCP
> TCP:Flags=...A.R.., SrcPort=8372, DstPort=HTTP(80), PayloadLen=0,
> Seq=3291710338, Ack=3326586000, Win=0 {TCP:60, IPv4:29}
>
>
> Please note that packet 550 was apparently from a different cpu
> process.
>
oh, packet number 363 has HTTP/1.1 as the protocol version..