Skip to content

The TS API function TSHttpAltInfoQualitySet() does not appear to have any effect. #7205

Description

@ywkaras

When I set a breakpoint in the Regression test for this, the response to the (synthetic) client is always the same, regardless of the call to this API function. (The "test" passes because it doesn't actually check what the response is.)

Breakpoint 1, synclient_txn_read_response (contp=<optimized out>) at traffic_server/InkAPITest.cc:669
669	  TSDebug(CDBG_TAG, "Response = |%s|, req len = %d", txn->response, txn->response_len);
(gdb) p txn->response
$3 = "HTTP/1.0 200 OK\r\nX-Response-ID: 6\r\nCache-Control: max-age=86400\r\nContent-Language: English\r\nDate: Tue, 08 Sep 2020 14:41:34 GMT\r\nAge: 0\r\nServer: ATS/10.0.0\r\n\r\nBody for response 6", '\000' <repeats 3917 times>
(gdb) c
Continuing.
Regression test(SDK_API_HttpAltInfo) still in progress

Breakpoint 1, synclient_txn_read_response (contp=<optimized out>) at traffic_server/InkAPITest.cc:669
669	  TSDebug(CDBG_TAG, "Response = |%s|, req len = %d", txn->response, txn->response_len);
(gdb) p txn->response
$4 = "HTTP/1.0 200 OK\r\nX-Response-ID: 6\r\nCache-Control: max-age=86400\r\nContent-Language: English\r\nDate: Tue, 08 Sep 2020 14:41:34 GMT\r\nAge: 0\r\nContent-Length: 19\r\nServer: ATS/10.0.0\r\n\r\nBody for response 6", '\000' <repeats 3897 times>
(gdb) c
Continuing.
[SDK_API_HttpAltInfo] TSHttpAltInfoClientReqGet : [TestCase] <<PASS>> { ok }
[SDK_API_HttpAltInfo] TSHttpAltInfoCachedReqGet : [TestCase] <<PASS>> { ok }
[SDK_API_HttpAltInfo] TSHttpAltInfoCachedRespGet : [TestCase] <<PASS>> { ok }
[SDK_API_HttpAltInfo] TSHttpAltInfoQualitySet : [TestCase] <<PASS>> { ok }

Breakpoint 1, synclient_txn_read_response (contp=<optimized out>) at traffic_server/InkAPITest.cc:669
669	  TSDebug(CDBG_TAG, "Response = |%s|, req len = %d", txn->response, txn->response_len);
(gdb) p txn->response
$5 = "HTTP/1.0 200 OK\r\nX-Response-ID: 6\r\nCache-Control: max-age=86400\r\nContent-Language: English\r\nDate: Tue, 08 Sep 2020 14:41:34 GMT\r\nAge: 60\r\nContent-Length: 19\r\nServer: ATS/10.0.0\r\n\r\nBody for response 6", '\000' <repeats 3896 times>

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions