Commit 4e016a8
fix: add configurable HTTP request timeout (default 30s)
The SDK's _request() method called session.request() without any timeout
parameter, causing all HTTP calls to block indefinitely if the API server
is slow or unresponsive. This could exhaust worker threads in consuming
applications and halt payment processing.
Added a configurable 'timeout' constructor parameter (default 30s) that
is passed to every requests.Session.request() call.
Co-authored-by: Babacar Diop <princemuichkine@users.noreply.github.com>1 parent ec87b5b commit 4e016a8
1 file changed
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
| 23 | + | |
22 | 24 | | |
23 | 25 | | |
24 | 26 | | |
25 | 27 | | |
26 | 28 | | |
| 29 | + | |
27 | 30 | | |
28 | 31 | | |
| 32 | + | |
29 | 33 | | |
30 | 34 | | |
31 | 35 | | |
| |||
70 | 74 | | |
71 | 75 | | |
72 | 76 | | |
| 77 | + | |
73 | 78 | | |
74 | 79 | | |
75 | 80 | | |
| |||
0 commit comments