Skip to content

Commit

Permalink
Can override timeout per query
Browse files Browse the repository at this point in the history
This fixes #147
  • Loading branch information
gturri committed Dec 14, 2024
1 parent a4c7fdc commit a04fb5a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/java/de/timroes/axmlrpc/XMLRPCClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -638,7 +638,10 @@ public void cancel() {
* @throws XMLRPCException Will be thrown if an error occurred during the call.
*/
public Object call(String methodName, Object[] params) throws XMLRPCException {
return callWithOverridenTimeout(methodName, connectTimeout, readTimeout, params);
}

public Object callWithOverridenTimeout(String methodName, int connectTimeout, int readTimeout, Object[] params) throws XMLRPCException {
try {

Call c = createCall(methodName, params);
Expand Down

0 comments on commit a04fb5a

Please sign in to comment.