Dane Everitt
9f985ae044
Check for error before prefix; fixes abandoned routine; closes pterodactyl/panel#3911
...
Due to the order of the previous logic in ScanReader, an error not caused by EOF would effectively get ignored since an error will always be returned with `isPrefix` equal to false, thus triggering the first break, and error checking is not performed beyond that point.
Thus, canceling an installation process for a server while this process was running would hang the routine and cause the loop to run endlessly, even with a canceled context.
2022-02-05 11:56:17 -05:00
Dane Everitt
1372eba84e
Remove unused function
2022-02-05 11:14:48 -05:00
Dane Everitt
3208b8579b
Add test coverage
2022-01-30 13:58:36 -05:00
Dane Everitt
de04e73e82
Reduce the size of the buffered reader to improve CPU performance
2022-01-23 18:31:53 -05:00
Dane Everitt
34c0db9dff
Replace encoding/json with goccy/go-json for cpu and memory usage improvement
...
This new package has significant better resource usage, and we do a _lot_ of JSON parsing in this application, so any amount of improvement becomes significant
2022-01-23 15:17:40 -05:00
Dane Everitt
2a9c9e893e
Add test for scan reader
2022-01-22 14:52:24 -05:00
Dane Everitt
1591d86e23
Quick note about the importance of the copy
2022-01-22 14:33:49 -05:00
Dane Everitt
b5536dfc77
Prevent excessive memory usage when large lines are sent over the console
2022-01-22 14:33:03 -05:00
Matthew Penner
c27e06bcb9
server: ensure last lines are always logged
2022-01-19 18:22:34 -07:00
Matthew Penner
649dc9663e
Server Event Optimizations ( #116 )
2022-01-17 20:23:29 -07:00
Matthew Penner
04b9ef69a1
run gofumpt
2021-11-15 10:37:56 -07:00
Dane Everitt
4b244e96fb
Fix .rar file decompression; closes pterodactyl/panel#3267
2021-04-17 13:13:37 -07:00
Dane Everitt
66b6f40b61
Fix import cycle issue
2021-01-17 21:05:51 -08:00
Dane Everitt
9480ccdbba
Initial WIP logic to handle loading configuration from the disk using viper
2021-01-12 21:14:57 -08:00
Dane Everitt
22c53c365a
Fix installer to not explode on long lines; closes pterodactyl/panel#2773
2020-12-25 17:05:01 -08:00
Dane Everitt
59c30c2842
Fix use of atomics in codebase
2020-12-25 17:04:18 -08:00
Matthew Penner
5c78cb9ab3
Add transfer logging output ( #77 )
...
Co-authored-by: Dane Everitt <dane@daneeveritt.com>
2020-12-25 13:32:41 -08:00
Dane Everitt
c0523df696
Add a server context that gets canceled when a server is deleted
2020-12-25 11:21:09 -08:00
Dane Everitt
4b17ac4f1c
Fix atomic string handling for JSON output
2020-11-06 22:22:33 -08:00
Dane Everitt
3fce1b98d5
Create atomic string to allow for simpler logic
2020-11-06 21:14:29 -08:00