Commit 4571c84
dgram: generalized send queue to handle close
If the udp socket is not ready and we are accumulating
messages to send, it needs to delay closing the socket when
all messages are flushed.
Fixes: #7061
PR-URL: #7066
Reviewed-By: Anna Henningsen <anna@addaleax.net>1 parent 02e6c84 commit 4571c84Copy full SHA for 4571c84
File tree
Expand file treeCollapse file tree
2 files changed
+57
-13
lines changedOpen diff view settings
Filter options
- lib
- test/parallel
Expand file treeCollapse file tree
2 files changed
+57
-13
lines changedOpen diff view settings
Collapse file
+39-13Lines changed: 39 additions & 13 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
243 | 243 | |
244 | 244 | |
245 | 245 | |
| 246 | + |
| 247 | + |
| 248 | + |
| 249 | + |
| 250 | + |
| 251 | + |
| 252 | + |
| 253 | + |
| 254 | + |
| 255 | + |
| 256 | + |
| 257 | + |
| 258 | + |
| 259 | + |
| 260 | + |
| 261 | + |
| 262 | + |
| 263 | + |
| 264 | + |
| 265 | + |
| 266 | + |
| 267 | + |
| 268 | + |
| 269 | + |
| 270 | + |
| 271 | + |
246 | 272 | |
247 | 273 | |
248 | 274 | |
| ||
290 | 316 | |
291 | 317 | |
292 | 318 | |
293 | | - |
294 | | - |
295 | | - |
296 | | - |
297 | | - |
298 | | - |
299 | | - |
300 | | - |
301 | | - |
302 | | - |
303 | | - |
304 | | - |
| 319 | + |
| 320 | + |
| 321 | + |
| 322 | + |
| 323 | + |
| 324 | + |
| 325 | + |
305 | 326 | |
306 | 327 | |
307 | 328 | |
| ||
347 | 368 | |
348 | 369 | |
349 | 370 | |
350 | | - |
351 | 371 | |
352 | 372 | |
353 | 373 | |
| 374 | + |
| 375 | + |
| 376 | + |
| 377 | + |
| 378 | + |
| 379 | + |
354 | 380 | |
355 | 381 | |
356 | 382 | |
|
Collapse file
test/parallel/test-dgram-close-in-listening.js
Copy file name to clipboard+18Lines changed: 18 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
| 1 | + |
| 2 | + |
| 3 | + |
| 4 | + |
| 5 | + |
| 6 | + |
| 7 | + |
| 8 | + |
| 9 | + |
| 10 | + |
| 11 | + |
| 12 | + |
| 13 | + |
| 14 | + |
| 15 | + |
| 16 | + |
| 17 | + |
| 18 | + |
0 commit comments