Hello,
I'm using HTTP api to consume a Rest Service, but the first call is always slower than the next ones. I activated the debug and found out that i think maybe is the service.
2022-02-23-17.39.02.919000: senddoc(): entered
2022-02-23-17.39.02.919000: senddoc(): data left=631, chunk size=631, timeout=60, calling comm_blockWrite...
2022-02-23-17.39.02.919000: CommSSL_BlockWrite(): gsk_secure_soc_write socket fd=1, flags=00000084, blocking=0
2022-02-23-17.39.02.919000: CommSSL_BlockWrite(): gsk_secure_soc_write rc=0, len=631
{"transaction":{"transactionId":"025415000002","product":{"id":"00000000300000001173","facilities":[{"id":"0001","description":"COM"
2022-02-23-17.39.02.919000: senddoc(): comm_blockWrite returned 631
2022-02-23-17.39.02.919000: recvresp(): entered
2022-02-23-17.39.02.929000: recvresp: reading response header, space left=32767
HTTP/1.1 200 OK
2022-02-23-17.39.04.780000: recvresp: reading response header, space left=32750
Date: Wed, 23 Feb 2022 20:37:43 GMT
How can i prove that in fact is the service?
Timeout first call
-
- Site Admin
- Posts: 872
- Joined: Sun Jul 04, 2021 5:12 am
Re: Timeout first call
This only shows one call. It appears to be taking just under 2 seconds to retrieve this line:
2 seconds seems like a long time to retrieve that, it is only about 38 bytes, it should receive that nearly instantly.
It's hard to tell you whether it is the service, your network, or your system is experiencing a slowdown. All I can see from this log is that it is taking 2 seconds to read that line from the network. All I can tell you is that HTTPAPI is waiting for the data to arrive on the network.
Code: Select all
Date: Wed, 23 Feb 2022 20:37:43 GMT
2 seconds seems like a long time to retrieve that, it is only about 38 bytes, it should receive that nearly instantly.
It's hard to tell you whether it is the service, your network, or your system is experiencing a slowdown. All I can see from this log is that it is taking 2 seconds to read that line from the network. All I can tell you is that HTTPAPI is waiting for the data to arrive on the network.