Shane Freeder
f712997dd7
Seperate client/serverbound payload limits
2026-04-17 21:03:04 +01:00
Shane Freeder
a6d97e28ad
Validate compression claim
2026-04-13 13:39:57 +01:00
Shane Freeder
e834af9cf1
Increase max ratio
...
Older versions of the game, and creative mode, send itemstacks to the server
when dealing with itemstacks, annoying, the compression algo used is good at
backreferencing, which means that compressed data can balloon pretty well.
64 should more than cover most cases of legit data, we could probably be more
harsh here, but this is likely a fine balance between avoiding bombs and not
erring out on legit data.
2026-04-09 19:04:02 +01:00
Shane Freeder
affc1d6e08
Extend debug logging to client play/config handlers
2026-04-09 19:03:33 +01:00
Shane Freeder
6f01587318
Appease checkstyle
2026-04-08 21:19:27 +01:00
Shane Freeder
308ce6d992
Merge branch 'cat/limits' into dev/3.0.0
2026-04-08 21:12:52 +01:00
Shane Freeder
9890c429c6
Add compression ratio limiter
2026-04-08 21:12:41 +01:00
Shane Freeder
0219993c8a
Add basic packet limiter
2026-04-08 20:41:45 +01:00
Shane Freeder
f6d48c90f9
reduce clientbound compression limits
2026-04-08 20:41:09 +01:00
Shane Freeder
747cc8984f
Bump netty to 4.2.10.Final
2026-03-08 20:00:28 +00:00
Shane Freeder
372a3b28bd
Conformity
2026-01-08 17:13:08 +00:00
Shane Freeder
a03bd884aa
Restrict empty packet frames from clients
2026-01-08 16:53:58 +00:00
Shane Freeder and GitHub
38a0a7ed27
use correct string length for newer MC versions ( Fixes #1629 ) ( #1668 )
2025-10-18 21:22:26 +01:00
Shane Freeder
d2d333a958
Bumpy netty to 4.2.4
2025-08-14 21:14:51 +01:00
Shane Freeder
81deb1fff8
Update maven publishing repo name
2025-06-30 15:22:39 +01:00
Shane Freeder
fe69214e77
Downgrade netty ( Fixes #1591 )
2025-06-17 18:46:22 +01:00
Shane Freeder
44bc15db40
Add system property to skip packet compression threshold validation
2025-06-14 20:29:12 +01:00
Shane Freeder
669fda298c
Only apply max known pack restrictions Serverbound
2025-06-11 10:12:48 +01:00
Shane Freeder
8c8162dbf6
Discard known packs if we don't have a target
2025-05-24 18:28:54 +01:00
Shane Freeder
5eb83760cd
Attempt to improve partial read situations during early connections
2025-05-22 14:26:48 +01:00
Shane Freeder
8fea43d6ba
Add some means to quickly overlook deframing issues
2025-05-22 13:13:06 +01:00
Shane Freeder
e13c8c340f
Increase limit to account for strings being strings
2025-05-09 22:17:04 +01:00
Shane Freeder
dc659538d3
Set netty allocator earlier and more globally
2025-05-09 20:19:29 +01:00
Shane Freeder
eb099d1220
Merge branches 'dev/3.0.0' and 'dev/3.0.0' of github.com:PaperMC/Velocity into dev/3.0.0
2025-05-09 15:55:40 +01:00
Shane Freeder
00016ba4e1
Validate handshake packet length early
2025-05-08 00:15:50 +01:00
Shane Freeder
bd2bb6325e
Validate state transition
2025-04-17 18:59:49 +01:00
Shane Freeder
74d05211d6
Also validate length before caring to invest time into processing
2025-04-12 16:52:31 +01:00
Shane Freeder
7ad06614fe
Appease checkstyle gods
2025-04-12 16:22:06 +01:00
Shane Freeder
163a85a468
Merge branch 'cleanup/plugin-message-channel-handling' into dev/3.0.0
2025-04-12 16:20:21 +01:00
Shane Freeder
a51711e4bb
Use an ImmutableList Builder
2025-04-12 16:20:07 +01:00
Shane Freeder
a429bb53ce
Merge remote-tracking branch 'origin/dev/3.0.0' into cleanup/plugin-message-channel-handling
2025-04-09 10:06:40 +01:00
Shane Freeder
9c1be72db0
Fix tests
2025-04-06 21:25:08 +01:00
Shane Freeder
747f70d80a
Appease checkstyle
2025-04-06 21:25:03 +01:00
Shane Freeder
b482443e79
Fix spot
2025-04-06 21:22:22 +01:00
Shane Freeder
676ec9cb21
preliminary cleanup of plugin message channel handling
2025-04-06 21:09:14 +01:00
Shane Freeder
c72a3eefde
Check if kicking on command rate limit is enabled
2025-04-03 22:51:26 +01:00
Shane Freeder
f986eb51ec
Do not print an exception if a client closed before switching to config state
2025-02-13 12:12:33 +00:00
Shane Freeder
9d1332d3a3
Add PluginMessageEvents for configuration phase
2025-02-13 11:53:30 +00:00
Shane Freeder
371e686076
properly apply vanilla cap to chat packets
2025-01-23 19:30:55 +00:00
Shane Freeder
71feb11b2e
Fix fallback compression handler
2025-01-17 15:11:03 +00:00
Shane Freeder
6100e675af
Switch to alt throw path for reading login message IDs ( Fixes #1370 )
...
There is little expectation that we should get a -ve number in here, but
it is sadly seen in the wild. We will use an alternative exception path rather
than returing a magic number to indicate an invalid value.
once primative classes arrive, this should probably be written to use those
for passing up the result.
2024-08-21 17:06:11 +01:00
Shane Freeder
44b1e0c6f9
Print correct exception when hotspot dump fails
2024-07-22 15:42:42 +01:00
Shane Freeder
79a5634dfe
[ci skip] fix some trivial javadoc warns
2024-07-10 23:05:24 +01:00
Shane Freeder
82e81909d8
Add handling for KickPlayerRaw
2024-07-10 23:00:20 +01:00
Shane Freeder
1228f14742
Hotfix cancelling unsigned 1.20.6 commands
2024-05-03 19:20:12 +01:00
Shane Freeder
368d1a7c12
Do not send empty upsert player info packets
...
There is no harm in this, but seemingly, some common mod blows up on this, and,
well, why eat buffer?
2024-05-01 18:03:37 +01:00
Shane Freeder
5cdcf86cf9
Properly pass connection exceptions to the logger
2024-05-01 17:22:18 +01:00
Shane Freeder
b50f9eceff
Fix command argument types for 1.20.5
2024-04-24 09:39:22 +01:00
Shane Freeder
3b6419997c
Align default prevent proxy connection settings with the default config file
...
This option generally creates a bunch of oddities in many setups, defaulting to false
as per the default toml config, is probably the better option here
2024-04-20 13:57:37 +01:00
Shane Freeder
3bce4d8576
Succesful is not an extended state
2024-04-02 14:02:34 +01:00
Shane Freeder
d4077ddc1a
only send extended resource pack states on supported versions
2024-04-02 13:53:22 +01:00
Shane Freeder
ad50582836
Send downloaded/successful resource pack status when already applied ( Fixes #1280 )
2024-04-02 13:20:13 +01:00
Shane Freeder
2c8355fc45
Update spotless
2024-03-03 13:38:40 +00:00
Shane Freeder
62c6ec044e
Make sure that the backend server knows the pack application was successful
...
accepted, is just the first expected state, we also need to tell that the pack
was actually applied on the client in order to allow it to progress in the connection
process
2024-03-02 15:06:32 +00:00
Shane Freeder
5956751284
Bump client connection state before sending disconnection packets
2024-02-01 12:59:47 +00:00
Shane Freeder
283005c8bc
Fix fat finger
2024-01-21 11:48:37 +00:00
Shane Freeder
f6fbd25805
Downgrade severity of handling several incoming user input packet states
2024-01-21 11:47:14 +00:00
Shane Freeder
35137df76c
Bump to adventure release
...
The API changes required for adopting resource packs are still needed, however
the maven snapshots repo is dead, and nothing technically stops us from doing
this
2024-01-19 15:26:31 +00:00
Shane Freeder and GitHub
b22b2dc458
Migrate to using built-in http client ( #1192 )
2024-01-17 15:02:36 +00:00
Shane Freeder
21ae82e7c0
Update adventure to snapshot version
2023-12-14 16:36:18 +00:00
Shane Freeder
79fe8c8005
[ci skip] Fix internal javadoc
2023-12-14 14:33:10 +00:00
Shane Freeder
b270206d2e
Revert "Bump configurate to 4.1.2"
...
This reverts commit 8f45bbf872 .
the "hack" we had to include both 3 and 4 in the runtime jar is not
working, and we can't exactly break this right now
2023-12-09 19:08:43 +00:00
Shane Freeder
8f45bbf872
Bump configurate to 4.1.2
...
There is some considerations to provide 3 at runtime for plugins,
but, this is long overdue to align up with the rest of the ecosystem
here.
2023-12-09 18:33:29 +00:00
Shane Freeder
8be7ace3f1
Bump minimum java version to 17
2023-12-09 18:27:49 +00:00
Shane Freeder
9e47a711b2
Move GH actions to java 17
...
Java 11 left standard support 3 months ago, it's time to move forward
and align with the rest of the ecosystem
2023-12-09 18:16:02 +00:00
Shane Freeder
bbbf549c88
Bump version pending 1.20.4 and API changes
2023-12-09 17:55:58 +00:00
Shane Freeder
07a525be7f
Correct writing of brand string
2023-11-30 23:02:43 +00:00
Shane Freeder and GitHub
98163cb82c
acknowledge seen messages to server when running proxy commands ( #1100 )
2023-10-12 17:22:42 +01:00
Shane Freeder
2bd2c692ea
Change packet decode logging prompt
2023-10-10 18:44:03 +01:00
Shane Freeder
05e5963660
appease checkstyle, move back to older fix placement
2023-10-10 18:21:02 +01:00
Shane Freeder
550ca58a09
Actually send plugin message registration to backend servers
...
I don't see where this was ever done, and don't see how plugin messaging
could of ever worked, at least within the confines of CB and co, given
the fact that we never seemed to be sending this to the backend?
2023-10-10 18:05:05 +01:00
Shane Freeder
8deb0ff70d
[ci skip] fix URL derp
2022-12-10 00:45:04 +00:00
Shane Freeder
c932ee5e25
[ci skip] Update guava javadoc link
2022-12-10 00:43:32 +00:00
Shane Freeder
9cbaeb7b65
Bump Adventure library
...
Please note that aspects of the new API are not implemented, especially
regarding the newly added signed messaging stuff, this is just to keep
in sync with other projects.
2022-12-08 22:34:13 +00:00
Shane Freeder
f6b032cb04
Fix misrenamed illegal chat chars translation key
2022-09-15 21:48:28 +01:00
Shane Freeder
4b77425585
Bump netty
2022-08-28 00:33:04 +01:00
Shane Freeder
c03d7e259c
Validate that we have a target
2022-06-25 21:38:55 +01:00
Shane Freeder
0caff79bf8
hard over system message chat type for 1.19+
2022-06-22 05:30:27 +01:00
Shane Freeder and GitHub
3501969960
move force key checking into a system property ( #736 )
2022-06-09 12:07:24 +01:00
Shane Freeder
f088bd4443
[ci skip] fix gradle build script deprecation
...
https://docs.gradle.org/7.3.1/dsl/org.gradle.api.reporting.Report.html#org.gradle.api.reporting.Report:enabled
2022-06-09 00:17:00 +01:00
Shane Freeder
2fe50bedc5
1.18.2 support
2022-02-28 14:27:57 +00:00
Shane Freeder
5fe3663d51
Update Log4J
2021-12-10 01:57:42 +00:00
Shane Freeder
2cff5b3b02
Backport log4j 2.15.0 bugfix
2021-12-09 18:46:55 +00:00