[
https://issues.apache.org/jira/browse/TS-3306?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Thomas Jackson closed TS-3306.
------------------------------
Resolution: Not a Problem
Turns out there was a bug in the origin that was miscalculating the
content-length. Some clients (such as curl) will continue to use the tcp
session even if there is such a mismatch, but ATS doesn't-- which is more than
fair. I've fixed the test case, and can confirm that it is working as intended.
> Keep_alive_out not working
> --------------------------
>
> Key: TS-3306
> URL: https://issues.apache.org/jira/browse/TS-3306
> Project: Traffic Server
> Issue Type: Bug
> Reporter: Thomas Jackson
> Fix For: 5.3.0
>
> Attachments: cop.log
>
>
> I *hope* that I'm just missing something very obvious, but as best I can tell
> keep_alive_out is not working on 5.0, 5.1, and master. At some point this
> worked as we vetted the feature when we rolled it out-- I think we were
> running 4.2 at the time.
> To show the issue I created a test
> (https://github.com/jacksontj/trafficserver/commit/f913b88666aef6502b8540149a60b2ce25853f9c)
> which shows the issue.
> In my test case there is a socket server which just returns a 200 OK
> keep-alive response with the body being the number of HTTP requests this tcp
> connection has seen. If you run the test you can see that it will always
> return 1. I thought this could have been some issue timeouts or something,
> but you can see in the output (below) that ATS immediately closes the
> connection to origin.
> {code}
> test_basic_proxy (test_keepalive.TestKeepAliveOut) ... connection from
> ('127.0.0.1', 39298)
> GET / HTTP/1.1
> Host: 127.0.0.1:45807
> Accept-Encoding: gzip
> Accept: */*
> User-Agent: python-requests/2.5.1 CPython/2.6.6
> Linux/2.6.32-431.20.3.el6.ipvs.x86_64
> Client-ip: 127.0.0.1
> X-Forwarded-For: 127.0.0.1
> Via: http/1.1 <proxy_name>[2620011950002221C32458757B78BB48]
> (ApacheTrafficServer/5.3.0)
> sending data back to the client
> Client disconnected
> waiting for a connection
> connection from ('127.0.0.1', 39300)
> GET / HTTP/1.1
> Host: 127.0.0.1:45807
> Accept-Encoding: gzip
> Accept: */*
> User-Agent: python-requests/2.5.1 CPython/2.6.6
> Linux/2.6.32-431.20.3.el6.ipvs.x86_64
> Client-ip: 127.0.0.1
> X-Forwarded-For: 127.0.0.1
> Via: http/1.1 <proxy_name>[2620011950002221C32458757B78BB48]
> (ApacheTrafficServer/5.3.0)
> sending data back to the client
> Client disconnected
> waiting for a connection
> FAIL
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)