Hang during POST when running under PHP+Apache
Ami Ganguli <[email protected]> Thu, 13 Nov 2014 15:02:43 -0500
| Newsgroups | gmane.comp.web.curl.php |
|---|---|
| Message-ID | <CAL5SrRQgmiAvny41b2KagqCZrx8WzqTP5E-6cMMQHWy4qhTn2g@mail.gmail.com> |
--===============0781054530== Content-Type: multipart/alternative; boundary=089e01175f29cc8f3f0507c2fe9b --089e01175f29cc8f3f0507c2fe9b Content-Type: text/plain; charset=UTF-8 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. --089e01175f29cc8f3f0507c2fe9b Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><div>Hello,</div><div><br></div>I'm using the Amazon A= WS PHP SDK, which is based on Guzzle, and thus Curl.<div><br></div><div>I h= ave a function which runs quickly from my command-line unit test, but hangs= for about 15 seconds when run through Apache.=C2=A0 I've enabled CURLO= PT_VERBOSE, and I can see the hang in my log, but I don't know how to i= nterpret what what I'm looking at.</div><div><br></div><div>The relevan= t part of the log output with the hang marked:</div><div><br></div><div>=3D= =3D=3D=3D START LOG SNIPPET =3D=3D=3D=3D</div><div><br></div><div><div>* Ad= ding handle: conn: 0x7f1c43c431e0</div><div>* Adding handle: send: 0</div><= div>* Adding handle: recv: 0</div><div>* Curl_addHandleToPipeline: length: = 1</div><div>* - Conn 0 (0x7f1c43c431e0) send_pipe: 1, recv_pipe: 0</div><di= v><br></div><div>=3D=3D=3D=3D 15 second hang happens here! =3D=3D=3D=3D</di= v><div><br></div><div>* About to connect() to <a href=3D"http://dynamodb.us= -east-1.amazonaws.com">dynamodb.us-east-1.amazonaws.com</a> port 443 (#0)</= div><div>* =C2=A0 Trying 205.251.243.228...</div><div>* Connected to <a hre= f=3D"http://dynamodb.us-east-1.amazonaws.com">dynamodb.us-east-1.amazonaws.= com</a> (205.251.243.228) port 443 (#0)</div><div>* Initializing NSS with c= ertpath: sql:/etc/pki/nssdb</div><div>* =C2=A0 CAfile: /home/ami/git/HTML5C= onfigurator/vendor/guzzle/guzzle/src/Guzzle/Http/Resources/cacert.pem</div>= <div>=C2=A0 CApath: none</div><div>* SSL connection using TLS_RSA_WITH_RC4_= 128_MD5</div><div>* Server certificate:</div><div>* <span class=3D"" style= =3D"white-space:pre"> </span>subject: CN=3D<a href=3D"http://dynamodb.us-ea= st-1.amazonaws.com">dynamodb.us-east-1.amazonaws.com</a>,O=3DAmazon.com Inc= .,L=3DSeattle,ST=3DWashington,C=3DUS</div><div>* <span class=3D"" style=3D"= white-space:pre"> </span>start date: Jan 01 00:00:00 2014 GMT</div><div>* <= span class=3D"" style=3D"white-space:pre"> </span>expire date: Jan 02 23:59= :59 2015 GMT</div><div>* <span class=3D"" style=3D"white-space:pre"> </span= >common name: <a href=3D"http://dynamodb.us-east-1.amazonaws.com">dynamodb.= us-east-1.amazonaws.com</a></div><div>* <span class=3D"" style=3D"white-spa= ce:pre"> </span>issuer: CN=3DVeriSign Class 3 Secure Server CA - G3,OU=3DTe= rms of use at <a href=3D"https://www.verisign.com/rpa">https://www.verisign= .com/rpa</a> (c)10,OU=3DVeriSign Trust Network,O=3D"VeriSign, Inc.&quo= t;,C=3DUS</div></div><div><br></div><div>=3D=3D=3D=3D END LOG SNIPPET =3D= =3D=3D=3D</div><div><br></div><div>Does any body have any idea what's h= appening?=C2=A0 If somebody could tell me what the log line just before the= hang means, that might get me a bit further.</div><div><br></div><div>Chee= rs,</div><div>Ami.</div><div><br></div><div><br></div></div> --089e01175f29cc8f3f0507c2fe9b-- --===============0781054530== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KaHR0cDovL2Nv b2wuaGF4eC5zZS9jZ2ktYmluL21haWxtYW4vbGlzdGluZm8vY3VybC1hbmQtcGhwCg== --===============0781054530==--