Skip to content

Commit 1c271ba

Browse files
author
Jarkko Laitinen
committed
Implementing Delete-verb caused some peculiar problems. Having done a delete call the next call would fail. It seemed to have something to do with connection reuse. This fixed it.
1 parent c4c240d commit 1c271ba

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

fi/cosky/sdk/API.java

+4
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,10 @@ public API(String baseUrl) {
4646
this.objectCache = new ObjectCache();
4747
this.timed = false;
4848
this.retry = true;
49+
50+
//Delete-Verb causes connection to keep something somewhere that causes the next request to fail.
51+
//this hopefully helps with that.
52+
System.setProperty("http.keepAlive", "false");
4953
}
5054

5155
private boolean authenticate() {

0 commit comments

Comments
 (0)