[PHP] [SOLVED] Re: [PHP] curl_exec won't return (any data)

2011-02-11 Thread Tolas Anon
fromTolas Anon tolas...@gmail.com to libcurl development curl-libr...@cool.haxx.se dateFri, Feb 11, 2011 at 5:09 PM subject Re: php curl_exec won't return any data, libcurl-7.21.3.0, php 5.3.4, WampServer2.1d-x64.exe mailed-by gmail.com On Fri, Feb 11, 2011 at 1:32 PM

Re: [PHP] curl_exec won't return (any data)

2011-02-09 Thread Tolas Anon
exec-sum update : details continued at http://curl.haxx.se/mail/lib-2011-02/0101.html it turns out using the internetdomainname of the apache server is the source of the problem. the adsl router could be dropping the connection, or something else. calling curl_exec() to a localhost address will

[PHP] curl_exec won't return (any data)

2011-02-08 Thread Tolas Anon
Hi.. For a set of media import routines, i'm using a javascript-php_on_apache-windows.bat-php_cli-curl-php_script invocation method. It seems longwinded, but it's designed to have different parts of the import process run on different servers. I'm stuck at getting curl_exec() to return the data

Re: [PHP] curl_exec won't return (any data)

2011-02-08 Thread David Hutto
On Tue, Feb 8, 2011 at 7:24 AM, Tolas Anon tolas...@gmail.com wrote: Hi.. For a set of media import routines, i'm using a javascript-php_on_apache-windows.bat-php_cli-curl-php_script invocation method. It seems longwinded, but it's designed to have different parts of the import process run

Re: [PHP] curl_exec won't return (any data)

2011-02-08 Thread David Hutto
On Tue, Feb 8, 2011 at 7:32 AM, David Hutto smokefl...@gmail.com wrote: On Tue, Feb 8, 2011 at 7:24 AM, Tolas Anon tolas...@gmail.com wrote: Hi.. For a set of media import routines, i'm using a javascript-php_on_apache-windows.bat-php_cli-curl-php_script invocation method. It seems

Re: [PHP] curl_exec won't return (any data)

2011-02-08 Thread Ashley Sheridan
On Tue, 2011-02-08 at 13:24 +0100, Tolas Anon wrote: Hi.. For a set of media import routines, i'm using a javascript-php_on_apache-windows.bat-php_cli-curl-php_script invocation method. It seems longwinded, but it's designed to have different parts of the import process run on different

Re: [PHP] curl_exec won't return (any data)

2011-02-08 Thread David Hutto
On Tue, Feb 8, 2011 at 7:35 AM, Ashley Sheridan a...@ashleysheridan.co.uk wrote: On Tue, 2011-02-08 at 13:24 +0100, Tolas Anon wrote: Hi.. For a set of media import routines, i'm using a javascript-php_on_apache-windows.bat-php_cli-curl-php_script invocation method. It seems longwinded,

Re: [PHP] curl_exec won't return (any data)

2011-02-08 Thread Tolas Anon
On Tue, Feb 8, 2011 at 1:35 PM, Ashley Sheridan a...@ashleysheridan.co.ukwrote: On Tue, 2011-02-08 at 13:24 +0100, Tolas Anon wrote: Hi.. For a set of media import routines, i'm using a javascript-php_on_apache-windows.bat-php_cli-curl-php_script invocation method. It seems

Re: [PHP] curl_exec won't return (any data)

2011-02-08 Thread Ashley Sheridan
On Tue, 2011-02-08 at 13:50 +0100, Tolas Anon wrote: On Tue, Feb 8, 2011 at 1:35 PM, Ashley Sheridan a...@ashleysheridan.co.uk wrote: On Tue, 2011-02-08 at 13:24 +0100, Tolas Anon wrote: Hi.. For a set of media import routines,

Re: [PHP] curl_exec won't return (any data)

2011-02-08 Thread David Hutto
On Tue, Feb 8, 2011 at 8:02 AM, Ashley Sheridan a...@ashleysheridan.co.ukwrote: On Tue, 2011-02-08 at 07:59 -0500, David Hutto wrote: it's : javascript - php_on_apache - windows.bat - php_cli - php_daemon_script - curl_exec - php_script followed by calls-until-finished from javascript

Fwd: [PHP] curl_exec won't return (any data)

2011-02-08 Thread Tolas Anon
-- Forwarded message -- From: Tolas Anon tolas...@gmail.com Date: Tue, Feb 8, 2011 at 1:56 PM Subject: Re: [PHP] curl_exec won't return (any data) To: a...@ashleysheridan.co.uk On Tue, Feb 8, 2011 at 1:50 PM, Tolas Anon tolas...@gmail.com wrote: On Tue, Feb 8, 2011 at 1:35

Re: [PHP] curl_exec won't return (any data)

2011-02-08 Thread David Hutto
On Tue, Feb 8, 2011 at 7:50 AM, Tolas Anon tolas...@gmail.com wrote: On Tue, Feb 8, 2011 at 1:35 PM, Ashley Sheridan a...@ashleysheridan.co.ukwrote: On Tue, 2011-02-08 at 13:24 +0100, Tolas Anon wrote: Hi.. For a set of media import routines, i'm using a

Re: [PHP] curl_exec won't return (any data)

2011-02-08 Thread Ashley Sheridan
On Tue, 2011-02-08 at 07:59 -0500, David Hutto wrote: it's : javascript - php_on_apache - windows.bat - php_cli - php_daemon_script - curl_exec - php_script followed by calls-until-finished from javascript that read the status of php_script via json files written to the server and thus

Re: [PHP] curl_exec won't return (any data)

2011-02-08 Thread Tolas Anon
ok, i've done another run, this time with both php_daemon_script and php_script allowed to run indefinitely, and i've triple-checked my results.. - all the calls to convert and import the +-2gb video file in php_script (the import-worker-script) complete just fine, they update a debug file on the

Re: [PHP] curl_exec won't return (any data)

2011-02-08 Thread Tolas Anon
for completeness, i'll say that i'm using libcurl-7.21.3, and (again) that these import routines work without problems for smaller video files (tested with +-60mb vid file). -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] curl_exec won't return (any data)

2011-02-08 Thread Tolas Anon
also: the vid file itself is converted correctly too, and inserted into my db correctly. i can even view the converted flv and it has the correct length and everything! it's just that the frigging import won't continue with the rest of the files in the queue.. it's maddening! ;-) -- PHP General

Re: [PHP] curl_exec won't return (any data)

2011-02-08 Thread Tolas Anon
On Tue, Feb 8, 2011 at 3:39 PM, Tolas Anon tolas...@gmail.com wrote: also: the vid file itself is converted correctly too, and inserted into my db correctly. i can even view the converted flv and it has the correct length and everything! it's just that the frigging import won't continue

Re: [PHP] curl_exec won't return (any data)

2011-02-08 Thread Tolas Anon
the one thing i can think of is that curl_exec() somehow stops listening for results and hangs the calling php script (php_daemon_script in this case) if it does not receive any data for more than a few minutes (converting the 60mb vid file takes about a minute, and the 2gb script well over 30

Re: [PHP] curl_exec won't return (any data)

2011-02-08 Thread Mujtaba Arshad
nice quintuple posting. On Tue, Feb 8, 2011 at 9:46 AM, Tolas Anon tolas...@gmail.com wrote: the one thing i can think of is that curl_exec() somehow stops listening for results and hangs the calling php script (php_daemon_script in this case) if it does not receive any data for more than a

Re: [PHP] curl_exec won't return (any data)

2011-02-08 Thread Tolas Anon
Things I've checked in the meanwhile; curl_setopt($ch,CURLOPT_TIMEOUT, 0); and curl_setopt($ch,CURLOPT_TIMEOUT, 9); have the same freezing results as before I've used a packetsniffer to analyze the dataflow on my port 80, with all other http apps incl the browser not in memory/running, so i

Re: [PHP] curl_exec won't return (any data)

2011-02-08 Thread Tolas Anon
On Tue, Feb 8, 2011 at 7:01 PM, Tolas Anon tolas...@gmail.com wrote: Things I've checked in the meanwhile; curl_setopt($ch,CURLOPT_TIMEOUT, 0); and curl_setopt($ch,CURLOPT_TIMEOUT, 9); have the same freezing results as before I've used a packetsniffer to analyze the dataflow on my port

Re: [PHP] curl_exec won't return (any data)

2011-02-08 Thread Tolas Anon
ok, did another run with a different packet analyzer, one that does not have winPcap under the hood like WireShark does. I chose microsoft network monitor 3.4 for the task. the launch of the 2gb vid import (only part by curl_exec): format: packetnumber[TAB] time_date_local_adjusted[TAB]

Re: [PHP] curl_exec won't return (any data)

2011-02-08 Thread Tolas Anon
On Tue, Feb 8, 2011 at 8:54 PM, Tolas Anon tolas...@gmail.com wrote: But in the meanwhile I found a new idea to try as well;        curl_setopt($ch, CURLOPT_HTTPHEADER, array(                        'Connection: Keep-Alive',                        'Keep-Alive: 300'        )); I already

Re: [PHP] curl_exec won't return (any data)

2011-02-08 Thread Steve Staples
On Tue, 2011-02-08 at 21:15 +0100, Tolas Anon wrote: On Tue, Feb 8, 2011 at 8:54 PM, Tolas Anon tolas...@gmail.com wrote: But in the meanwhile I found a new idea to try as well; curl_setopt($ch, CURLOPT_HTTPHEADER, array( 'Connection: Keep-Alive',

Re: [PHP] curl_exec won't return (any data)

2011-02-08 Thread Tolas Anon
On Tue, Feb 8, 2011 at 9:33 PM, Steve Staples sstap...@mnsi.net wrote: i've been sorta reading this (as I am sure most maybe stopped after the 4th consecutive post)... yea, i feel i gotta be complete so as to not waste the time of people who do wanna help. but what I am wondering is... why

Re: [PHP] curl_exec won't return (any data)

2011-02-08 Thread David Hutto
On Tue, Feb 8, 2011 at 3:47 PM, Tolas Anon tolas...@gmail.com wrote: On Tue, Feb 8, 2011 at 9:33 PM, Steve Staples sstap...@mnsi.net wrote: i've been sorta reading this (as I am sure most maybe stopped after the 4th consecutive post)... yea, i feel i gotta be complete so as to not waste the

Re: [PHP] curl_exec won't return (any data)

2011-02-08 Thread Tolas Anon
On Tue, Feb 8, 2011 at 11:01 PM, Tolas Anon tolas...@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'      

Re: [PHP] curl_exec won't return (any data)

2011-02-08 Thread Tolas Anon
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

Re: [PHP] curl_exec won't return (any data)

2011-02-08 Thread Tolas Anon
The one thing that strikes me as odd, before i go, is that i saw no actual HTTP-KEEPALIVE traffic flowing... I might have missed it, but i don't think so.. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] curl_exec won't return (any data)

2011-02-08 Thread David Hutto
On Tue, Feb 8, 2011 at 5:05 PM, Tolas Anon tolas...@gmail.com wrote: The one thing that strikes me as odd, before i go, is that i saw no actual HTTP-KEEPALIVE traffic flowing... I might have missed it, but i don't think so.. Welcome to programming. on /off true /false. -- PHP General