Re: curl_exec won't return (any data)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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] time_offset[TAB]

processname[TAB] source[TAB] destination[TAB] protocolname[TAB]

description[TAB] conv_id[TAB] tolas_comment

134	19:50:08 8-2-2011	31.2774633	Unavailable	

WindowsNameOfApacheServer  	InternetDomainOfApacheServer	HTTP	

HTTP:Request, POST /site/cms/php/php_(import_)script.php,

Query:PHPSESSID=o365inhor0ln8mqdr0p8vb3rm7&action=batchNext	

{HTTP:40, TCP:38, IPv4:8}	

135	19:50:08 8-2-2011	31.2777843	Unavailable	

InternetDomainOfApacheServer	WindowsNameOfApacheServer  	TCP	

TCP:Flags=...A...., SrcPort=3573, DstPort=HTTP(80), PayloadLen=0,

Seq=1169302766, Ack=4118332969, Win=260 (scale factor 0x8) = 66560	

{TCP:39, IPv4:8}

136	19:50:08 8-2-2011	31.2781472	Unavailable	

InternetDomainOfApacheServer	WindowsNameOfApacheServer  	HTTP	

HTTP:Request, POST /site/cms/php/php_(import_)script.php,

Query:PHPSESSID=o365inhor0ln8mqdr0p8vb3rm7&action=batchNext	

{HTTP:41, TCP:39, IPv4:8}

138	19:50:08 8-2-2011	31.4807963	Unavailable	

WindowsNameOfApacheServer  	InternetDomainOfApacheServer	TCP	

TCP:Flags=...A...., SrcPort=HTTP(80), DstPort=3573, PayloadLen=0,

Seq=4118332969, Ack=1169303037, Win=260 (scale factor 0x8) = 66560	

{TCP:39, IPv4:8}

139	19:50:08 8-2-2011	31.4859769	Unavailable	

InternetDomainOfApacheServer	WindowsNameOfApacheServer  	TCP	

TCP:Flags=...A...., SrcPort=HTTP(80), DstPort=3573, PayloadLen=0,

Seq=4118332969, Ack=1169303037, Win=260 (scale factor 0x8) = 66560	

{TCP:38, IPv4:8}

140	19:50:08 8-2-2011	31.6234279		adsl-router	

WindowsNameOfApacheServer  	TCP	TCP:Flags=......S.,

SrcPort=2456, DstPort=14013, PayloadLen=0, Seq=1335058890, Ack=0,

Win=5840 ( Negotiating scale factor 0x2 ) = 5840	{TCP:42,

IPv4:4}

141	19:50:11 8-2-2011	34.6104085		adsl-router	

WindowsNameOfApacheServer  	TCP	TCP:[SynReTransmit #140]

Flags=......S., SrcPort=2456, DstPort=14013, PayloadLen=0,

Seq=1335058890, Ack=0, Win=5840 ( Negotiating scale factor 0x2 ) =

5840	{TCP:42, IPv4:4}

Packet 137 = adsl-router discovery traffic, not relevant.





Then, after 45 minutes or so, the completion of the conversion and
import, with the wanted data sent back to curl_exec() running from
php-cli, which was started by windows.bat

Some other (network discovery) traffic is likely mixed in, I added it
to be on the safe side.

5901	20:32:45 8-2-2011	2588.7346959	Unavailable	WindowsNameOfApacheServer
 	InternetNameOfApacheServer	HTTP	HTTP:Response, HTTP/1.1, Status: Ok,
URL: /site/cms/php/php_(import_)script.php	{HTTP:41, TCP:39, IPv4:8}
{{CONTAINS THE WANTED DATA}}

5902	20:32:45 8-2-2011	2588.7354838		InternetNameOfApacheServer	WindowsNameOfApacheServer
 	ICMP	ICMP:Destination Unreachable Message, Communication
Administratively Prohibited, 82.161.37.94	{IPv4:8}

5903	20:32:48 8-2-2011	2591.6092751		FE80:0:0:0:E579:89FF:369D:668B	FF02:0:0:0:0:0:0:C	SSDP	SSDP:Request,
M-SEARCH * 	{HTTP:3, UDP:2, IPv6:1}

5904	20:32:48 8-2-2011	2591.7421833	Unavailable	WindowsNameOfApacheServer
 	InternetNameOfApacheServer	TCP	TCP:[ReTransmit #5901]Flags=...AP...,
SrcPort=HTTP(80), DstPort=3573, PayloadLen=558, Seq=4118332969 -
4118333527, Ack=1169303037, Win=260 (scale factor 0x8) =
66560	{TCP:39, IPv4:8}

5905	20:32:48 8-2-2011	2591.7452755		InternetNameOfApacheServer	WindowsNameOfApacheServer
 	ICMP	ICMP:Destination Unreachable Message, Communication
Administratively Prohibited, 82.161.37.94	{IPv4:8}

5906	20:32:49 8-2-2011	2592.4183261		192.168.178.1	WindowsNameOfApacheServer
 	TCP	TCP:Flags=......S., SrcPort=2119, DstPort=14013, PayloadLen=0,
Seq=4038649047, Ack=0, Win=5840 ( Negotiating scale factor 0x2 ) =
5840	{TCP:1001, IPv4:4}

5907	20:32:51 8-2-2011	2594.2343496	Unavailable	WindowsNameOfApacheServer
 	InternetNameOfApacheServer	TCP	TCP:Flags=...A...F, SrcPort=HTTP(80),
DstPort=3573, PayloadLen=0, Seq=4118333527, Ack=1169303037, Win=260
(scale factor 0x8) = 66560	{TCP:39, IPv4:8}

5908	20:32:51 8-2-2011	2594.2349872		InternetNameOfApacheServer	WindowsNameOfApacheServer
 	ICMP	ICMP:Destination Unreachable Message, Communication
Administratively Prohibited, 82.161.37.94	{IPv4:8}

5909	20:32:52 8-2-2011	2595.4057840		192.168.178.1	WindowsNameOfApacheServer
 	TCP	TCP:[SynReTransmit #5906]Flags=......S., SrcPort=2119,
DstPort=14013, PayloadLen=0, Seq=4038649047, Ack=0, Win=5840 (
Negotiating scale factor 0x2 ) = 5840	{TCP:1001, IPv4:4}

5910	20:32:52 8-2-2011	2595.6096074		FE80:0:0:0:E579:89FF:369D:668B	FF02:0:0:0:0:0:0:C	SSDP	SSDP:Request,
M-SEARCH * 	{HTTP:3, UDP:2, IPv6:1}

5911	20:32:54 8-2-2011	2597.7425395	Unavailable	WindowsNameOfApacheServer
 	InternetNameOfApacheServer	TCP	TCP:[ReTransmit #5901]Flags=...AP..F,
SrcPort=HTTP(80), DstPort=3573, PayloadLen=558, Seq=4118332969 -
4118333528, Ack=1169303037, Win=260 (scale factor 0x8) =
66560	{TCP:39, IPv4:8}

5912	20:32:54 8-2-2011	2597.7431815		InternetNameOfApacheServer	WindowsNameOfApacheServer
 	ICMP	ICMP:Destination Unreachable Message, Communication
Administratively Prohibited, 82.161.37.94	{IPv4:8}

5913	20:32:55 8-2-2011	2598.6096667		FE80:0:0:0:E579:89FF:369D:668B	FF02:0:0:0:0:0:0:C	SSDP	SSDP:Request,
M-SEARCH * 	{HTTP:3, UDP:2, IPv6:1}

5914	20:32:56 8-2-2011	2598.8905694		WindowsNameOfApacheServer
	192.168.178.1	ARP	ARP:Request, 192.168.178.21 asks for 192.168.178.1

5915	20:32:56 8-2-2011	2598.8908810		192.168.178.1	WindowsNameOfApacheServer
 	ARP	ARP:Response, 192.168.178.1 at BC-05-43-15-E7-1E

5916	20:32:58 8-2-2011	2601.3814710		192.168.178.1	WindowsNameOfApacheServer
 	TCP	TCP:[SynReTransmit #5906]Flags=......S., SrcPort=2119,
DstPort=14013, PayloadLen=0, Seq=4038649047, Ack=0, Win=5840 (
Negotiating scale factor 0x2 ) =
5840	{TCP:1001, IPv4:4}

5917	20:32:58 8-2-2011	2601.6098163		FE80:0:0:0:E579:89FF:369D:668B	FF02:0:0:0:0:0:0:C	SSDP	SSDP:Request,
M-SEARCH * 	{HTTP:3, UDP:2, IPv6:1}


Needless to say, changing network sniffer did not magically fix
things, all the php-level logging still indicates a frozen
curl_exec(), that did get the data.

Note: no warnings about bogus header checksums this time, even though
on packet 5901 i do get a ipv4 header checksum of 0x00, but a
"Checksum: 0xED05, Disregarded" on the tcp header section.



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 checked via phpinfo() that keep-alive is on in
apache2handler, and no other mentions of "keepalive" or "keep alive"
in the phpinfo() output.

I'll post the results.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux