Repository navigation
Commit 451ca66
committed
fix(knex): handle errors and stalls of the LISTEN probe client
The probe client had no error listener: a connection failure while it
waited for its notification emitted an unhandled error event and
killed the process, instead of rejecting watch(). Its errors now reject
the probe.
The probe client also ended gracefully without a bound, so a connection
stalled in its handshake kept its socket open and could hold the
process at shutdown. It now ends like the LISTEN client: its socket is
destroyed when end() does not settle in time. Both keep an error
listener while they end.1 parent b5b62b2 commit 451ca66
2 files changed
Lines changed: 80 additions & 16 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
99 | 114 | | |
100 | 115 | | |
101 | 116 | | |
| |||
358 | 373 | | |
359 | 374 | | |
360 | 375 | | |
361 | | - | |
362 | | - | |
363 | | - | |
364 | | - | |
365 | | - | |
366 | | - | |
367 | | - | |
368 | | - | |
| 376 | + | |
369 | 377 | | |
370 | 378 | | |
371 | 379 | | |
| |||
437 | 445 | | |
438 | 446 | | |
439 | 447 | | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
440 | 452 | | |
441 | 453 | | |
442 | 454 | | |
| |||
458 | 470 | | |
459 | 471 | | |
460 | 472 | | |
461 | | - | |
| 473 | + | |
462 | 474 | | |
463 | 475 | | |
464 | 476 | | |
465 | | - | |
| 477 | + | |
466 | 478 | | |
467 | 479 | | |
468 | 480 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2611 | 2611 | | |
2612 | 2612 | | |
2613 | 2613 | | |
| 2614 | + | |
| 2615 | + | |
| 2616 | + | |
| 2617 | + | |
| 2618 | + | |
| 2619 | + | |
2614 | 2620 | | |
2615 | 2621 | | |
2616 | | - | |
2617 | | - | |
2618 | | - | |
| 2622 | + | |
2619 | 2623 | | |
2620 | 2624 | | |
2621 | 2625 | | |
| |||
2630 | 2634 | | |
2631 | 2635 | | |
2632 | 2636 | | |
2633 | | - | |
| 2637 | + | |
| 2638 | + | |
| 2639 | + | |
| 2640 | + | |
| 2641 | + | |
2634 | 2642 | | |
2635 | 2643 | | |
2636 | | - | |
| 2644 | + | |
2637 | 2645 | | |
2638 | 2646 | | |
| 2647 | + | |
2639 | 2648 | | |
2640 | 2649 | | |
2641 | 2650 | | |
2642 | | - | |
| 2651 | + | |
| 2652 | + | |
| 2653 | + | |
| 2654 | + | |
2643 | 2655 | | |
2644 | 2656 | | |
2645 | 2657 | | |
| |||
2658 | 2670 | | |
2659 | 2671 | | |
2660 | 2672 | | |
| 2673 | + | |
2661 | 2674 | | |
2662 | 2675 | | |
2663 | 2676 | | |
| |||
2693 | 2706 | | |
2694 | 2707 | | |
2695 | 2708 | | |
| 2709 | + | |
| 2710 | + | |
| 2711 | + | |
| 2712 | + | |
| 2713 | + | |
| 2714 | + | |
| 2715 | + | |
| 2716 | + | |
| 2717 | + | |
| 2718 | + | |
| 2719 | + | |
| 2720 | + | |
| 2721 | + | |
| 2722 | + | |
| 2723 | + | |
| 2724 | + | |
| 2725 | + | |
| 2726 | + | |
| 2727 | + | |
| 2728 | + | |
| 2729 | + | |
| 2730 | + | |
| 2731 | + | |
| 2732 | + | |
| 2733 | + | |
| 2734 | + | |
| 2735 | + | |
| 2736 | + | |
| 2737 | + | |
| 2738 | + | |
| 2739 | + | |
| 2740 | + | |
| 2741 | + | |
| 2742 | + | |
| 2743 | + | |
| 2744 | + | |
| 2745 | + | |
| 2746 | + | |
| 2747 | + | |
2696 | 2748 | | |
2697 | 2749 | | |
2698 | 2750 | | |
| |||
0 commit comments