Token blocking calls timeout set to 3 seconds
This commit is contained in:
parent
66d0c87f09
commit
890813eaa2
@ -1109,7 +1109,7 @@ sub _newTokenRequest {
|
|||||||
url => $hash->{APIURI} . $dpoints{getOAuthToken},
|
url => $hash->{APIURI} . $dpoints{getOAuthToken},
|
||||||
header => { "Content-Type" => "application/json" },
|
header => { "Content-Type" => "application/json" },
|
||||||
method => 'POST',
|
method => 'POST',
|
||||||
timeout => 5,
|
timeout => 3,
|
||||||
hash => $hash,
|
hash => $hash,
|
||||||
data => encode_json $data
|
data => encode_json $data
|
||||||
};
|
};
|
||||||
@ -1174,7 +1174,7 @@ sub _tokenRefresh {
|
|||||||
url => $hash->{APIURI} . $dpoints{getRefreshToken},
|
url => $hash->{APIURI} . $dpoints{getRefreshToken},
|
||||||
header => { "Content-Type" => "application/json" },
|
header => { "Content-Type" => "application/json" },
|
||||||
method => 'POST',
|
method => 'POST',
|
||||||
timeout => 5,
|
timeout => 3,
|
||||||
hash => $hash,
|
hash => $hash,
|
||||||
data => encode_json $data
|
data => encode_json $data
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user