HTTPAPI Performance questions

Discussions related to HTTPAPI (An HTTP Client Package for RPG programming.) http://www.scottklement.com/httpapi/
assignment400
Posts: 12
Joined: Mon Aug 29, 2022 10:39 pm

Re: HTTPAPI Performance questions

Post by assignment400 »

Here is the debug. It seems straight forward and we are waiting on the response from the called API.
Attachments
ICIFCE-debug.zip
(1.3 KiB) Downloaded 149 times
assignment400
Posts: 12
Joined: Mon Aug 29, 2022 10:39 pm

Re: HTTPAPI Performance questions

Post by assignment400 »

I looked at the debug again and see that teh response does come back to us within the second.

2022-10-17-10.57.49.000000: senddoc(): data left=81, chunk size=81, timeout=60, calling comm_blockWrite...
{"CustomerAccountNumber": "1000171", "AuthKey" : "TESTENV", "Parts": ["924-125"]}
2022-10-17-10.57.49.000000: senddoc(): comm_blockWrite returned 81
2022-10-17-10.57.49.000000: recvresp(): entered
2022-10-17-10.57.49.000000: recvresp: reading response header, space left=32767
HTTP/1.1 200 OK

Would the problem be that we need PTF's? Unfortuantely, ours are very old.

Thank you.
Scott Klement
Site Admin
Posts: 636
Joined: Sun Jul 04, 2021 5:12 am

Re: HTTPAPI Performance questions

Post by Scott Klement »

This is what I see:

Code: Select all

2022-10-17-10.57.49.000000: recvresp: reading response header, space left=32767
HTTP/1.1 200 OK

2022-10-17-10.57.53.295000: recvresp: reading response header, space left=32750
Cache-Control: no-cache
So that is a more than 4 second wait time between the server sending you "OK" (meaning it accepted the data you POSTed) and sending the next HTTP header. All it's doing at this point is waiting for the server -- there's nothing going on in HTTPAPI. The delay is on the server side.
assignment400
Posts: 12
Joined: Mon Aug 29, 2022 10:39 pm

Re: HTTPAPI Performance questions

Post by assignment400 »

I am a little confused.

I see the receive and then it seems HTTPAPI is taking 4 seconds to process the response, or what is happening between the first receive and the 4 seconds?

Thank you.
Scott Klement
Site Admin
Posts: 636
Joined: Sun Jul 04, 2021 5:12 am

Re: HTTPAPI Performance questions

Post by Scott Klement »

It's waiting for the data to arrive on the network.
assignment400
Posts: 12
Joined: Mon Aug 29, 2022 10:39 pm

Re: HTTPAPI Performance questions

Post by assignment400 »

I finally have an answer to the problem. HTTPAPI is working correctly. The problem we found is that the web service started to reply to the request and then stalled for about 3 to 5 seconds before it started to send the response. The web service has an intermittent problem.

Thanks for the software and help.

Darryl.
Post Reply