Commit e9fe5ce
committed
v1.2.6: Fix memory leak, zombie threads & startup scripts crash
- Cap binary read buffer at 1MB to prevent unbounded growth
- Close pipes before joining reader threads to prevent zombie threads
- Clean up active_handlers on server delete
- Evict oldest entries from world_size_cache
- Use bytearray for buffer to reduce fragmentation
- Skip run.sh/run.bat scripts, use JAR-based startup instead
Fixes readline crash on Gentoo Linux/AppImage (Issue #11)1 parent 9df2e2a commit e9fe5ce
3 files changed
Lines changed: 51 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
209 | 209 | | |
210 | 210 | | |
211 | 211 | | |
| 212 | + | |
212 | 213 | | |
213 | 214 | | |
214 | 215 | | |
| |||
567 | 568 | | |
568 | 569 | | |
569 | 570 | | |
| 571 | + | |
| 572 | + | |
| 573 | + | |
| 574 | + | |
| 575 | + | |
| 576 | + | |
| 577 | + | |
570 | 578 | | |
571 | | - | |
572 | 579 | | |
573 | 580 | | |
574 | 581 | | |
| |||
1580 | 1587 | | |
1581 | 1588 | | |
1582 | 1589 | | |
| 1590 | + | |
| 1591 | + | |
| 1592 | + | |
| 1593 | + | |
| 1594 | + | |
1583 | 1595 | | |
1584 | 1596 | | |
1585 | 1597 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
810 | 810 | | |
811 | 811 | | |
812 | 812 | | |
813 | | - | |
814 | | - | |
| 813 | + | |
| 814 | + | |
| 815 | + | |
| 816 | + | |
| 817 | + | |
| 818 | + | |
| 819 | + | |
| 820 | + | |
| 821 | + | |
| 822 | + | |
815 | 823 | | |
816 | 824 | | |
817 | 825 | | |
| |||
1012 | 1020 | | |
1013 | 1021 | | |
1014 | 1022 | | |
1015 | | - | |
| 1023 | + | |
| 1024 | + | |
1016 | 1025 | | |
1017 | 1026 | | |
1018 | 1027 | | |
| |||
1029 | 1038 | | |
1030 | 1039 | | |
1031 | 1040 | | |
1032 | | - | |
| 1041 | + | |
| 1042 | + | |
| 1043 | + | |
| 1044 | + | |
| 1045 | + | |
| 1046 | + | |
| 1047 | + | |
| 1048 | + | |
| 1049 | + | |
| 1050 | + | |
| 1051 | + | |
| 1052 | + | |
| 1053 | + | |
| 1054 | + | |
1033 | 1055 | | |
1034 | 1056 | | |
1035 | 1057 | | |
| |||
1052 | 1074 | | |
1053 | 1075 | | |
1054 | 1076 | | |
1055 | | - | |
| 1077 | + | |
1056 | 1078 | | |
1057 | 1079 | | |
1058 | 1080 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
4 | 14 | | |
5 | 15 | | |
6 | 16 | | |
| |||
0 commit comments