- Notifications
You must be signed in to change notification settings - Fork5
Commit40e89e2
committed
Try harder to detect a port conflict in PostgresNode.pm.
Commitfab84c7 tried to get away without doing an actual bind(),but buildfarm results show that that doesn't get the job done. So we mustreally bind to the target port --- and at least on my Linux box, we need alisten() as well, or conflicts won't be detected. We rely on SO_REUSEADDRto prevent problems from starting a postmaster on the socket immediatelyafter we've bound to it in the test code. (There may be platforms wherethat doesn't work too well. But fortunately, we only really care whetherthis works on Windows, and there the default behavior should be OK.)1 parent63417b4 commit40e89e2
1 file changed
+12
-6
lines changedLines changed: 12 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
859 | 859 |
| |
860 | 860 |
| |
861 | 861 |
| |
862 |
| - | |
863 |
| - | |
864 |
| - | |
865 |
| - | |
866 |
| - | |
867 |
| - | |
| 862 | + | |
| 863 | + | |
| 864 | + | |
| 865 | + | |
| 866 | + | |
| 867 | + | |
| 868 | + | |
| 869 | + | |
| 870 | + | |
| 871 | + | |
| 872 | + | |
| 873 | + | |
868 | 874 |
| |
869 | 875 |
| |
870 | 876 |
| |
|
0 commit comments
Comments
(0)