curl-and-php
Hang during POST when running under PHP+Apache
Date: Thu, 13 Nov 2014 15:02:43 -0500
Hello,
I'm using the Amazon AWS PHP SDK, which is based on Guzzle, and thus Curl.
I have a function which runs quickly from my command-line unit test, but
hangs for about 15 seconds when run through Apache. I've enabled
CURLOPT_VERBOSE, and I can see the hang in my log, but I don't know how to
interpret what what I'm looking at.
The relevant part of the log output with the hang marked:
==== START LOG SNIPPET ====
* Adding handle: conn: 0x7f1c43c431e0
* Adding handle: send: 0
* Adding handle: recv: 0
* Curl_addHandleToPipeline: length: 1
* - Conn 0 (0x7f1c43c431e0) send_pipe: 1, recv_pipe: 0
==== 15 second hang happens here! ====
* About to connect() to dynamodb.us-east-1.amazonaws.com port 443 (#0)
* Trying 205.251.243.228...
* Connected to dynamodb.us-east-1.amazonaws.com (205.251.243.228) port 443
(#0)
* Initializing NSS with certpath: sql:/etc/pki/nssdb
* CAfile:
/home/ami/git/HTML5Configurator/vendor/guzzle/guzzle/src/Guzzle/Http/Resources/cacert.pem
CApath: none
* SSL connection using TLS_RSA_WITH_RC4_128_MD5
* Server certificate:
* subject: CN=dynamodb.us-east-1.amazonaws.com,O=Amazon.com
Inc.,L=Seattle,ST=Washington,C=US
* start date: Jan 01 00:00:00 2014 GMT
* expire date: Jan 02 23:59:59 2015 GMT
* common name: dynamodb.us-east-1.amazonaws.com
* issuer: CN=VeriSign Class 3 Secure Server CA - G3,OU=Terms of use at
https://www.verisign.com/rpa (c)10,OU=VeriSign Trust Network,O="VeriSign,
Inc.",C=US
==== END LOG SNIPPET ====
Does any body have any idea what's happening? If somebody could tell me
what the log line just before the hang means, that might get me a bit
further.
Cheers,
Ami.
_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php
Received on 2014-11-13