forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit2f9907c
committed
Fix walsender processes to establish a SIGALRM handler.
Walsenders must have working SIGALRM handling during InitPostgres,but they set the handler to SIG_IGN so that nothing would happenif a timeout was reached. This could result in two failure modes:* If a walsender participated in a deadlock during its authenticationtransaction, and was the last to wait in the deadly embrace, the deadlockwould not get cleared automatically. This would require somebody to betrying to take out AccessExclusiveLock on multiple system catalogs, soit's not very probable.* If a client failed to respond to a walsender's authentication challenge,the intended disconnect after AuthenticationTimeout wouldn't happen, andthe walsender would wait indefinitely for the client.For the moment, fix in back branches only, since this is fixed in adifferent way in the timeout-infrastructure patch that's awaitingapplication to HEAD. If we choose not to apply that, then we'll needto do this in HEAD as well.1 parentdffc6c8 commit2f9907c
1 file changed
+2
-1
lines changedLines changed: 2 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
47 | 47 |
| |
48 | 48 |
| |
49 | 49 |
| |
| 50 | + | |
50 | 51 |
| |
51 | 52 |
| |
52 | 53 |
| |
| |||
844 | 845 |
| |
845 | 846 |
| |
846 | 847 |
| |
847 |
| - | |
| 848 | + | |
848 | 849 |
| |
849 | 850 |
| |
850 | 851 |
| |
|
0 commit comments
Comments
(0)