- Notifications
You must be signed in to change notification settings - Fork4.9k
Commita5b0d95
committed
Use OpenSSL's SSL_MODE_ACCEPT_MOVING_WRITE_BUFFER flag.
This disables an entirely unnecessary "sanity check" that causes failuresin nonblocking mode, because OpenSSL complains if we move or compact thewrite buffer. The only actual requirement is that we not modify pendingdata once we've attempted to send it, which we don't. Per testing andresearch by Martin Pihlak, though this fix is a lot simpler than his patch.I put the same change into the backend, although it's less clear whetherit's necessary there. We do use nonblock mode in some situations instreaming replication, so seems best to keep the same behavior in thebackend as in libpq.Back-patch to all supported releases.1 parent18e52ae commita5b0d95
2 files changed
+12
-0
lines changedLines changed: 6 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
718 | 718 |
| |
719 | 719 |
| |
720 | 720 |
| |
| 721 | + | |
| 722 | + | |
| 723 | + | |
| 724 | + | |
| 725 | + | |
| 726 | + | |
721 | 727 |
| |
722 | 728 |
| |
723 | 729 |
| |
|
Lines changed: 6 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
757 | 757 |
| |
758 | 758 |
| |
759 | 759 |
| |
| 760 | + | |
| 761 | + | |
| 762 | + | |
| 763 | + | |
| 764 | + | |
| 765 | + | |
760 | 766 |
| |
761 | 767 |
| |
762 | 768 |
| |
|
0 commit comments
Comments
(0)