Commit f840bef
connpool: add method to get conn in internal pool
This patch introduces a supplementary method in the internal pool used
within the `experimental.connpool` module. Previously, there was only
one method for getting a connection to instance that also tried to
reconnect on fail. This commit introduces a method that only gets the
existing connections and reuses it in a variety of places where it is
meant.
It, actually, affects behavior a little bit. For instance, in
`connpool.call()` the idle timeout is calculated from the earlier
point in the time when it accesses the candidates satisfying the static
requirements. It is no longer bumped when `call()` finds a suitable
candidate and checks if it satisfies dynamic requirements. Though it
does not affect the behavior a lot due to tight timings.
It also simplifies the logic of checking dynamic options. They no longer
establish a connection to instance. Instead they try to access.
Needed for tarantool#10330
NO_CHANGELOG=small behavior change, not released yet
NO_TEST=will be tested later
NO_DOC=small behavior change1 parent fa0540b commit f840bef
1 file changed
+9
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
159 | 159 | | |
160 | 160 | | |
161 | 161 | | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
162 | 167 | | |
163 | 168 | | |
164 | 169 | | |
| |||
443 | 448 | | |
444 | 449 | | |
445 | 450 | | |
446 | | - | |
| 451 | + | |
447 | 452 | | |
448 | 453 | | |
449 | 454 | | |
450 | 455 | | |
451 | 456 | | |
452 | 457 | | |
453 | 458 | | |
454 | | - | |
| 459 | + | |
455 | 460 | | |
456 | 461 | | |
457 | 462 | | |
| |||
623 | 628 | | |
624 | 629 | | |
625 | 630 | | |
626 | | - | |
| 631 | + | |
627 | 632 | | |
628 | 633 | | |
629 | 634 | | |
| |||
656 | 661 | | |
657 | 662 | | |
658 | 663 | | |
659 | | - | |
660 | | - | |
| 664 | + | |
661 | 665 | | |
662 | 666 | | |
663 | 667 | | |
| |||
0 commit comments