Commit eb60e89
authored
Dissallow access and removal of Head and Tail ChannelHandlers (#225)
Motivation:
The Head and Tail ChannelHandlers should not be accessible as these are implementation details of the ChannelPipeline and removal of these will even make the whole ChannelPipeline not work anymore.
Modifications:
- Make it impossible to access / removal the Head and Tail ChannelHandlers
- Exclude the Head and Tail ChannelHandler from the debug String
- Add unit tests.
Result:
More robust ChannelPipeline.1 parent 61f03a7 commit eb60e89
File tree
3 files changed
+77
-8
lines changed- Sources/NIO
- Tests/NIOTests
3 files changed
+77
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
446 | 446 | | |
447 | 447 | | |
448 | 448 | | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
449 | 456 | | |
450 | | - | |
451 | | - | |
| 457 | + | |
| 458 | + | |
452 | 459 | | |
453 | 460 | | |
454 | 461 | | |
| |||
835 | 842 | | |
836 | 843 | | |
837 | 844 | | |
838 | | - | |
839 | | - | |
| 845 | + | |
| 846 | + | |
840 | 847 | | |
841 | 848 | | |
842 | 849 | | |
| |||
876 | 883 | | |
877 | 884 | | |
878 | 885 | | |
879 | | - | |
| 886 | + | |
880 | 887 | | |
| 888 | + | |
881 | 889 | | |
882 | 890 | | |
883 | 891 | | |
| |||
930 | 938 | | |
931 | 939 | | |
932 | 940 | | |
933 | | - | |
| 941 | + | |
934 | 942 | | |
| 943 | + | |
935 | 944 | | |
936 | 945 | | |
937 | 946 | | |
| |||
1422 | 1431 | | |
1423 | 1432 | | |
1424 | 1433 | | |
1425 | | - | |
1426 | | - | |
| 1434 | + | |
| 1435 | + | |
1427 | 1436 | | |
1428 | 1437 | | |
1429 | 1438 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| 46 | + | |
| 47 | + | |
46 | 48 | | |
47 | 49 | | |
48 | 50 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
620 | 620 | | |
621 | 621 | | |
622 | 622 | | |
| 623 | + | |
| 624 | + | |
| 625 | + | |
| 626 | + | |
| 627 | + | |
| 628 | + | |
| 629 | + | |
| 630 | + | |
| 631 | + | |
| 632 | + | |
| 633 | + | |
| 634 | + | |
| 635 | + | |
| 636 | + | |
| 637 | + | |
| 638 | + | |
| 639 | + | |
| 640 | + | |
| 641 | + | |
| 642 | + | |
| 643 | + | |
| 644 | + | |
| 645 | + | |
| 646 | + | |
| 647 | + | |
| 648 | + | |
| 649 | + | |
| 650 | + | |
| 651 | + | |
| 652 | + | |
| 653 | + | |
| 654 | + | |
| 655 | + | |
| 656 | + | |
| 657 | + | |
| 658 | + | |
| 659 | + | |
| 660 | + | |
| 661 | + | |
| 662 | + | |
| 663 | + | |
| 664 | + | |
| 665 | + | |
| 666 | + | |
| 667 | + | |
| 668 | + | |
| 669 | + | |
| 670 | + | |
| 671 | + | |
| 672 | + | |
| 673 | + | |
| 674 | + | |
| 675 | + | |
| 676 | + | |
| 677 | + | |
| 678 | + | |
| 679 | + | |
| 680 | + | |
623 | 681 | | |
0 commit comments