forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit6251f86
committed
On Windows, close the client socket explicitly during backend shutdown.
It turns out that this is necessary to keep Winsock from dropping anynot-yet-sent data, such as an error message explaining the reason forprocess termination. It's pretty weird that the implicit close doneby the kernel acts differently from an explicit close, but it's hardto argue with experimental results.Independently submitted by Alexander Lakhin and Lars Kanis (commentsby me, though). Back-patch to all supported branches.Discussion:https://postgr.es/m/90b34057-4176-7bb0-0dbb-9822a5f6425b@greiz-reinsdorf.deDiscussion:https://postgr.es/m/16678-253e48d34dc0c376@postgresql.org1 parentfae5f08 commit6251f86
1 file changed
+20
-7
lines changedLines changed: 20 additions & 7 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
284 | 284 |
| |
285 | 285 |
| |
286 | 286 |
| |
287 |
| - | |
288 |
| - | |
289 |
| - | |
290 |
| - | |
291 |
| - | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
292 | 291 |
| |
293 |
| - | |
294 |
| - | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
295 | 303 |
| |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
296 | 309 |
| |
297 | 310 |
| |
298 | 311 |
| |
|
0 commit comments
Comments
(0)