Skip to content
This repository was archived by the owner on Jun 21, 2019. It is now read-only.

Set a timeout for http requests #19

Merged
merged 1 commit into from
Dec 31, 2017

Conversation

MrCustomizer
Copy link
Collaborator

Currently the SDK blocks and never returns if a server does not respond to a request. I had a situation in the wild while testing the login in my client, where this happened. And I have been able to simulate this behaviour with the new test case in this PR, see below.

To resolve this issue, I propose to introduce some timeout values as seen below. The current 2 second-delay is just a wild guess as to what I thought could be a practical value. I don't really know, which delay would be most sensible. The default implementation seems to never timeout. Some background information for the timeouts: http://www.baeldung.com/httpclient-timeout

@maxidorius maxidorius merged commit e0ccec7 into kamax-matrix:master Dec 31, 2017
@MrCustomizer MrCustomizer deleted the httpTimeout branch July 16, 2018 14:55
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants