Commit 48795fa
committed
Fix connection pool shutdown by reusing cached SSL connections
Use computeIfAbsent() instead of compute() to prevent creating a new
PoolingHttpClientConnectionManager on every createClient() call. This
fixes "Connection pool shut down" exceptions that occurred when multiple
HttpClients shared a connection manager that was inadvertently replaced.1 parent c9061a3 commit 48795fa
1 file changed
Lines changed: 2 additions & 2 deletions
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
59 | | - | |
60 | | - | |
| 59 | + | |
| 60 | + | |
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
| |||
0 commit comments