Is there a way to reduce the time it takes for the client to fail with network disconnection? or alternatively cancel the request?
I am trying to implement a way to overcome network disconnection. therefore I am recognizing when a request failed due to network issues and exposing a retry button. But it can take sometimes 60 seconds from the time I am disconnecting the network until the request is actually failed. (I can’t simply use a timer without canceling the requests, because if I will perform retry without canceling the request it might result in a duplicated requests)