Michael Parker
56a9693767
update docker file
...
don't specify buildplatform
remove upx as it causes arm64 failures
remove goos as the build is on linux hosts.
2022-07-02 18:43:13 -04:00
softwarenoob
447f1c31aa
fix: arm64 docker builds
...
Don't hardcode amd64 platform for the Wings binary.
2022-06-17 10:35:34 +03:00
DaneEveritt
a51ce6f4ac
Update README.md
2022-06-16 20:37:01 -04:00
DaneEveritt
cec51f11f0
Update CHANGELOG.md
2022-05-31 14:36:24 -04:00
DaneEveritt
b1be2081eb
Better archive detection logic; try to use reflection as last ditch effort if unmatched
...
closes pterodactyl/panel#4101
2022-05-30 18:42:31 -04:00
DaneEveritt
203a2091a0
Use the correct CPU period when throttling servers; closes pterodactyl/panel#4102
2022-05-30 17:45:41 -04:00
DaneEveritt
7fa7cc313f
Fix permissions not being checked correctly for admins
2022-05-29 21:48:49 -04:00
DaneEveritt
f390784973
Include error in log output if one occurs during move
2022-05-21 17:01:12 -04:00
DaneEveritt
5df1acd10e
We don't return public keys
2022-05-15 16:41:26 -04:00
DaneEveritt
1927a59cd0
Send key correctly; don't retry 4xx errors
2022-05-15 16:17:06 -04:00
DaneEveritt
5bcf4164fb
Add support for public key based auth
2022-05-15 16:01:52 -04:00
DaneEveritt
37e4d57cdf
Don't include files and folders with identical name prefixes when archiving; closes pterodactyl/panel#3946
2022-05-12 18:00:55 -04:00
DaneEveritt
7ededdb9a2
Update CHANGELOG.md
2022-05-12 17:57:26 -04:00
DaneEveritt
1d197714df
Fix faulty handling of named pipes; closes pterodactyl/panel#4059
2022-05-07 15:53:08 -04:00
DaneEveritt
6c98a955e3
Only set cpu limits if specified; closes pterodactyl/panel#3988
2022-05-07 15:23:56 -04:00
Matthew Penner
8bd1ebe360
go: update dependencies
2022-03-25 10:04:57 -06:00
Matthew Penner
93664fd112
router: add additional fields to remote file pull
2022-02-23 15:03:15 -07:00
Matthew Penner
3a738e44d6
run gofumpt
2022-02-23 15:02:19 -07:00
Noah van der Aa
067ca5bb60
Actually enforce upload file size limit ( #122 )
2022-02-21 14:59:28 -08:00
Dane Everitt
f85509a0c7
Support a custom tmp directory location
2022-02-13 11:59:53 -05:00
Dane Everitt
225a89be72
Update CHANGELOG.md
2022-02-05 12:41:53 -05:00
Dane Everitt
5d1d3cc9e6
Fix panic conditions
2022-02-05 12:11:00 -05:00
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
879dcd8df5
Don't trigger a panic condition decoding event stats; closes pterodactyl/panel#3941
2022-02-05 11:06:11 -05:00
Dane Everitt
72476c61ec
Simplify the event bus system; address pterodactyl/panel#3903
...
If my debugging is correct, this should address pterodactyl/panel#3903 in its entirety by addressing a few areas where it was possible for a channel to lock up and cause everything to block
2022-02-02 21:03:53 -05:00
Dane Everitt
0f2e9fcc0b
Move the sink pool to be a shared tool
2022-02-02 19:16:34 -05:00
Dane Everitt
5c3e2c2c94
Fix failing test
2022-01-31 19:33:32 -05:00
Dane Everitt
7051feee01
Add additional debug points to server start process
2022-01-31 19:30:07 -05:00
Dane Everitt
cd67e5fdb9
Fix logic for context based environment stopping
...
Uses dual contexts to handle stopping using a timed context, and also terminating the entire process loop if the parent context gets canceled.
2022-01-31 19:09:08 -05:00
Dane Everitt
84bbefdadc
Pass a context through to the start/stop/terminate actions
2022-01-31 18:40:15 -05:00
Dane Everitt
6a4178648f
Return context cancelations as a locker locked error
2022-01-31 18:39:41 -05:00
Dane Everitt
1e52ffef64
Fix panic condition when no response is returned
2022-01-31 18:37:02 -05:00
Dane Everitt
0f9f80c181
Improve support for block/mutex contention in pprof
2022-01-30 21:02:18 -05:00
Dane Everitt
4b702052c7
Update CHANGELOG.md
2022-01-30 20:27:26 -05:00
Dane Everitt
7ee6c48fb0
Use a more efficient logging format for containers
...
JSON has a huge amount of overhead from Docker when we're trying to process large amounts of log data. It makes more sense to just use a better format.
2022-01-30 19:51:23 -05:00
Dane Everitt
2b2b5200eb
Rewrite console throttling logic; drop complex timer usage and use a very simple throttle
...
This also removes server process termination logic when a server is breaching the output limits. It simply continues to efficiently throttle the console output.
2022-01-30 19:31:04 -05:00
Dane Everitt
fb73d5dbbf
Always run pprof when running debug through makefile
2022-01-30 15:11:17 -05:00
Dane Everitt
fd7ec2aaac
Generate normal and debug artifacts
2022-01-30 15:06:56 -05:00
Dane Everitt
c3df8d2309
Add support for proper use of pprof
2022-01-30 14:50:37 -05:00
Dane Everitt
1965e68a78
Include debug symbols in non-release binaries
2022-01-30 14:05:55 -05:00
Dane Everitt
3208b8579b
Add test coverage
2022-01-30 13:58:36 -05:00
Dane Everitt
c4ee82c4dc
Code cleanup, providing better commentary to decisions
2022-01-30 12:56:25 -05:00
Dane Everitt
0ec0fffa4d
Handle future scenarios where we forgot to add a listener
2022-01-30 11:58:53 -05:00
Dane Everitt
57daf0889a
Cleanup logic for updating stats to avoid calling mutex outside of file
2022-01-30 11:55:59 -05:00
Dane Everitt
d7c7155802
Make the powerlocker logic a little more idiomatic
2022-01-30 11:46:27 -05:00
Dane Everitt
11ae5e69ed
Improve performance of console output watcher; work directly with bytes rather than string conversions
2022-01-30 11:28:06 -05:00
Dane Everitt
fab88a380e
Use buffered channels and ring-buffer logic when processing console data
...
This change fixes pterodactyl/panel#3921 by implementing logic to drop the oldest message in a channel and push the newest message onto the channel when the channel buffer is full.
This is distinctly different than the previous implementation which just dropped the newest messages, leading to confusing behavior on the client side when a large amount of data was sent over the connection.
Up to 10ms per channel is allowed for blocking before falling back to the drop logic.
2022-01-30 10:55:45 -05:00
Matthew Penner
68d4fb454f
actions(test): fix caching, run tests with race detector
2022-01-24 19:06:14 -07:00
Matthew Penner
136540111d
docker: attach to container before starting
2022-01-24 19:01:33 -07:00