Replies: 1 comment 3 replies
-
Currently there isn't a way to know whether a connection was reused from the pool or not. We could probably provide an API for this quite easily. We would add it as a new function in ResponseExt. Something like |
Beta Was this translation helpful? Give feedback.
3 replies
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
-
Hello, I am sending POST requests every second to the same HTTPS endpoint via
ureq::Agent
. Is there a way to detect whether the request was sent on a resumed connection or a new connection?Context:
Despite my frequent requests, I suspect the server is closing the connection. I can see from my debug logs a lot of
But I would like to detect these events programmatically.
Code:
I have asked the web service's team if I should send HTTP KeepAlive header, and they said they do not support it.
Beta Was this translation helpful? Give feedback.
All reactions