ywkaras opened a new issue #7205:
URL: https://github.com/apache/trafficserver/issues/7205


   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>
   ```


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to