- Notifications
You must be signed in to change notification settings - Fork5.2k
Commitfce7da1
committed
Handle cancel requests with PID 0 gracefully
If the client sent a query cancel request with backend PID 0, ittripped an assertion. With assertions disabled, you got this in thelog instead: LOG: invalid cancel request with PID 0 LOG: wrong key in cancel request for process 0Query cancellations don't even require authentication, so we bettertolerate bogus requests. Fix by turning the assertion into a regularruntime check.Spotted while testing libpq behavior with a modified server thatdidn't send BackendKeyData to the client.Backpatch-through: 181 parent8e5e3ff commitfce7da1
1 file changed
+5
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
728 | 728 | | |
729 | 729 | | |
730 | 730 | | |
731 | | - | |
| 731 | + | |
| 732 | + | |
| 733 | + | |
| 734 | + | |
| 735 | + | |
732 | 736 | | |
733 | 737 | | |
734 | 738 | | |
| |||
0 commit comments
Comments
(0)