- Notifications
You must be signed in to change notification settings - Fork5k
Commitb484ddf
committed
Treat ETIMEDOUT as indicating a non-recoverable connection failure.
Add ETIMEDOUT to ALL_CONNECTION_FAILURE_ERRNOS' list of "errnos thatidentify hard failure of a previously-established network connection".While one could imagine that this is sometimes recoverable, the samecould be said of other entries such as ENETDOWN.In support of this, handle ETIMEDOUT on par with other socket errorsin relevant infrastructure, such as TranslateSocketError().(I made a couple of cosmetic adjustments in TranslateSocketError(),too.) The code now assumes that ETIMEDOUT is defined everywhere,which it should be given that POSIX has required it since SUSv2.Perhaps this should be back-patched, but I'm hesitant to do so giventhe lack of previous complaints, and the hazard that there's a smallABI break on Windows from redefining the symbol. Even if we decideto do that, it'd be prudent to let this bake awhile in HEAD first.Jelte FennemaDiscussion:https://postgr.es/m/AM5PR83MB01782BFF2978505F6D6C559AF7AA9@AM5PR83MB0178.EURPRD83.prod.outlook.com1 parentd03bca4 commitb484ddf
File tree
4 files changed
+12
-6
lines changed- src
- backend/port/win32
- include
- port
- port
4 files changed
+12
-6
lines changedLines changed: 8 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
47 | 47 |
| |
48 | 48 |
| |
49 | 49 |
| |
50 |
| - | |
51 |
| - | |
| 50 | + | |
| 51 | + | |
52 | 52 |
| |
53 | 53 |
| |
54 | 54 |
| |
| |||
141 | 141 |
| |
142 | 142 |
| |
143 | 143 |
| |
| 144 | + | |
| 145 | + | |
| 146 | + | |
144 | 147 |
| |
145 | 148 |
| |
146 |
| - | |
| 149 | + | |
| 150 | + | |
147 | 151 |
| |
| 152 | + | |
148 | 153 |
| |
149 | 154 |
| |
150 | 155 |
| |
|
Lines changed: 2 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
119 | 119 |
| |
120 | 120 |
| |
121 | 121 |
| |
122 |
| - | |
| 122 | + | |
| 123 | + | |
123 | 124 |
| |
124 | 125 |
| |
125 | 126 |
| |
|
Lines changed: 2 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
381 | 381 |
| |
382 | 382 |
| |
383 | 383 |
| |
| 384 | + | |
| 385 | + | |
384 | 386 |
| |
385 | 387 |
| |
386 | 388 |
| |
|
Lines changed: 0 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
250 | 250 |
| |
251 | 251 |
| |
252 | 252 |
| |
253 |
| - | |
254 | 253 |
| |
255 | 254 |
| |
256 |
| - | |
257 | 255 |
| |
258 | 256 |
| |
259 | 257 |
| |
|
0 commit comments
Comments
(0)