Commit 9225336
authored
Handle case when HTTPConnection socket is wrapped with pyopenssl (patroni#3425)
It happens when `pyopenssl` is installed, because `python-etcd` module enforces its usage. In this case we need to use `WrappedSocket.socket` to shutdown and close connection.
Not doing so results in an error:
```python
TypeError('WrappedSocket.shutdown() takes 1 positional argument but 2 were given')
```
Close patroni#34201 parent 3a4ace2 commit 9225336
1 file changed
+9
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
583 | 583 | | |
584 | 584 | | |
585 | 585 | | |
586 | | - | |
| 586 | + | |
587 | 587 | | |
588 | 588 | | |
589 | 589 | | |
590 | | - | |
| 590 | + | |
591 | 591 | | |
592 | | - | |
| 592 | + | |
593 | 593 | | |
594 | 594 | | |
595 | | - | |
| 595 | + | |
| 596 | + | |
| 597 | + | |
| 598 | + | |
| 599 | + | |
| 600 | + | |
596 | 601 | | |
597 | 602 | | |
598 | 603 | | |
| |||
0 commit comments