Commit 4057d17
committed
Improve onClose behaviour on client side
TooTallNate#577
Client will delay closing the socket until there was an interrupt which
normally terminates the WebsocketWriteThread and causes all remaining
message to be pushed out (testsuite fails on random test cases, which is
probably caused by a high load and is not representive for a real usage
scenario)1 parent 2ed7d7e commit 4057d17
File tree
1 file changed
+25
-13
lines changed- src/main/java/org/java_websocket/client
1 file changed
+25
-13
lines changedLines changed: 25 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
370 | 370 | | |
371 | 371 | | |
372 | 372 | | |
373 | | - | |
374 | | - | |
375 | | - | |
376 | | - | |
377 | | - | |
378 | | - | |
379 | 373 | | |
380 | 374 | | |
381 | 375 | | |
| |||
464 | 458 | | |
465 | 459 | | |
466 | 460 | | |
467 | | - | |
468 | | - | |
469 | | - | |
470 | | - | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
471 | 472 | | |
472 | 473 | | |
473 | | - | |
474 | | - | |
475 | | - | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
476 | 486 | | |
| 487 | + | |
| 488 | + | |
477 | 489 | | |
478 | 490 | | |
479 | 491 | | |
| |||
0 commit comments