On Wed, 17 Sep 2014, Robert Citek wrote:

> Interesting.  Try adding timing information to curl. Here's a sample:
>
> $ time -p 2>&1 curl --trace-time -v -s http://grass.osgeo.org/ >
> /dev/null | cat -n
>     1    11:33:54.413116 * About to connect() to grass.osgeo.org port 80 (#0)

$ time -p 2>&1 curl --trace-time -v -s http://grass.osgeo.org/ > /dev/null |
cat -n
      1 11:42:40.211543 * Hostname was NOT found in DNS cache
      2 11:42:40.493108 *   Trying 140.211.15.75...
      3 11:42:40.547942 * Connected to grass.osgeo.org (140.211.15.75) port
      80 (#0)
      4 11:42:40.548052 > GET / HTTP/1.1
      5 11:42:40.548052 > User-Agent: curl/7.36.0
      6 11:42:40.548052 > Host: grass.osgeo.org
      7 11:42:40.548052 > Accept: */*
      8 11:42:40.548052 >
      9 11:43:37.096737 < HTTP/1.1 200 OK
     10 11:43:37.096778 < Date: Wed, 17 Sep 2014 18:42:41 GMT
     11 11:43:37.096802 * Server Apache/2.2.16 (Debian) is not blacklisted
     12 11:43:37.096815 < Server: Apache/2.2.16 (Debian)
     13 11:43:37.096839 < X-Powered-By: PHP/5.3.3-7+squeeze19
     14 11:43:37.096855 < Set-Cookie:
     CMSSESSID34ee0599=alf8u5i2lmchpfamfpuvoid3k6; path=/
     15 11:43:37.096865 < Expires: Mon, 26 Jul 1997 05:00:00 GMT
     16 11:43:37.096876 < Cache-Control: no-store, no-cache, must-revalidate
     17 11:43:37.096886 < Last-Modified: Wed, 17 Sep 2014 18:42:41 GMT
     18 11:43:37.096897 < Cache-Control: post-check=0, pre-check=0
     19 11:43:37.096907 < Pragma: no-cache
     20 11:43:37.096917 < Vary: Accept-Encoding
     21 11:43:37.096928 < Connection: close
     22 11:43:37.096940 < Transfer-Encoding: chunked
     23 11:43:37.096951 < Content-Type: text/html; charset=utf-8
     24 11:43:37.096961 <
     25 11:43:37.096971 { [data not shown]
     26 11:43:37.194929 * Closing connection 0
real 56.99
user 0.01
sys 0.00

   Notice the difference between your step 1 and my step 1. And look at the
delay between steps 8 and 9.

   Could the time between steps 8 and 9 be related to hostname not being
found in step 1? In whose DNS cache is curl looking? Do I have a local DNS
cache?

Thanks,

Rich
_______________________________________________
PLUG mailing list
[email protected]
http://lists.pdxlinux.org/mailman/listinfo/plug

Reply via email to