Masaori Koshiba created TS-2877:
-----------------------------------

             Summary: http_load wait timeout when response body is zero
                 Key: TS-2877
                 URL: https://issues.apache.org/jira/browse/TS-2877
             Project: Traffic Server
          Issue Type: Bug
          Components: Tools
            Reporter: Masaori Koshiba


It look like http_load wait until timeout when a keep-alive enabled server 
returns empty body. 

I build http_load from master branch (commit 
90ff1a79015a73d7906170f05c3d36fd3127e7d1)

For example, setup a keep-alive enabled Apache and a url which return empty 
body. 

h3. Apache settings
{noformat}
KeepAlive on
KeepAliveTimeout 10
{noformat}

h3. Request by curl
curl get response in 0.02 seconds.
{noformat}
$ time curl -vs http://localhost/empty
* About to connect() to localhost port 80 (#0)
*   Trying 127.0.0.1... connected
* Connected to localhost (127.0.0.1) port 80 (#0)
> GET /empty HTTP/1.1
> User-Agent: curl/7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7 NSS/3.14.0.0 
> zlib/1.2.3 libidn/1.18 libssh2/1.4.2
> Host: localhost
> Accept: */*
>
< HTTP/1.1 200 OK
< Date: Thu, 05 Jun 2014 06:56:23 GMT
< Last-Modified: Wed, 04 Jun 2014 10:20:15 GMT
< Accept-Ranges: bytes
< Content-Length: 0
< Content-Type: text/plain; charset=utf-8
<
* Connection #0 to host localhost left intact
* Closing connection #0
curl -vs http://localhost/empty  0.02s user 0.00s system 87% cpu 0.030 total
{noformat}

h3. Request by http_load
http_load wait 10 seconds.
{noformat}
$ cat url.txt
http://localhost/empty
$ ./http_load/http_load.master -verbose -parallel 1 -fetches 1 -keep_alive 1 
./url.txt
1 fetches on 1 conns, 1 max parallel, 0 bytes, in 10.0114 seconds
0 mean bytes/fetch
0.0998858 fetches/sec, 0 bytes/sec
msecs/connect: 0.112 mean, 0.112 max, 0.112 min
msecs/first-response: 0.7 mean, 0.7 max, 0.7 min
HTTP response codes:
  code 200 -- 1
Socket slot stats:
  slot 0000 -- 1 connections, 1 requests, 1 responses
{noformat}



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to