- Notifications
You must be signed in to change notification settings - Fork4.9k
Commit6051857
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 parenta7da419 commit6051857
1 file changed
+20
-7
lines changedLines changed: 20 additions & 7 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
277 | 277 |
| |
278 | 278 |
| |
279 | 279 |
| |
280 |
| - | |
281 |
| - | |
282 |
| - | |
283 |
| - | |
284 |
| - | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
285 | 284 |
| |
286 |
| - | |
287 |
| - | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
288 | 296 |
| |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
289 | 302 |
| |
290 | 303 |
| |
291 | 304 |
| |
|
0 commit comments
Comments
(0)