Andrew Steinborn
46e92a069b
Fix an issue with too short not breaking the loop
2020-05-31 14:01:27 -04:00
Andrew Steinborn
f27aa8e3ba
Handle empty packets too
2020-05-31 09:54:47 -04:00
Andrew Steinborn
c856635ac5
Try two, with improved state maintenance and some bugs fixed
2020-05-31 08:14:33 -04:00
Andrew Steinborn
3a8ba76f25
This did not work :(
2020-05-31 07:55:19 -04:00
Andrew Steinborn
869f2a6b32
Merge branch 'dev/1.1.0' into decode-multiple
2020-05-29 21:37:10 -04:00
Andrew Steinborn
e83662e8c3
Clean up imports and remove some legacy declarations.
2020-05-29 21:36:58 -04:00
Andrew Steinborn
11fb5f2be3
Simplify the discard logic.
2020-05-29 21:35:07 -04:00
Andrew Steinborn
dd2e1ad241
Handle partially sent varints better
2020-05-29 21:11:21 -04:00
Andrew Steinborn
b6f1dcc166
Optimize varint frame decoding again
...
Use ByteProcessor in a controlled matter in one specific case. Performance measurements with my Ryzen 5 3600 indicate a 25-35% improvement in time spent framing incoming packets.
2020-05-29 20:52:04 -04:00
Andrew Steinborn
9f6d8e1840
Merge branch 'dev/1.1.0' into decode-multiple
2020-05-29 19:03:03 -04:00
Andrew Steinborn
b028d9ca8f
Use standard Guava annotation
2020-05-28 10:44:42 -04:00
Andrew Steinborn
cb99b184ed
Allow plugins to mutate available commands sent to the client.
...
This is the first unstable API being introduced and is primarily to get feedback on the system.
2020-05-28 07:14:49 -04:00
Andrew Steinborn
305949487e
Add @UnstableApi annotation. Resolves #313
2020-05-28 07:05:19 -04:00
Andrew Steinborn
d66766a38b
Merge branch 'dev/1.1.0' into decode-multiple
2020-05-26 05:25:11 -04:00
Andrew Steinborn
eeb660ce00
Fix bad ordering
2020-05-26 05:25:03 -04:00
Andrew Steinborn
0d1acdb056
Merge branch 'dev/1.1.0' into decode-multiple
2020-05-25 16:09:19 -04:00
Andrew Steinborn
d538516f4c
Bump Netty version
2020-05-25 16:08:53 -04:00
Andrew Steinborn
ebad3d1005
Use Integer.MIN_VALUE for the sentinel for readVarIntSafely()
2020-05-25 16:05:36 -04:00
Andrew Steinborn
d7bbe7531a
Additional protocol hardening.
2020-05-25 15:58:52 -04:00
Andrew Steinborn
ae8852dc9d
Native tests should only run on Linux
2020-05-25 13:29:02 -04:00
Andrew Steinborn
62d3f61a77
Merge branch 'dev/1.1.0' into decode-multiple
...
# Conflicts:
# proxy/src/main/java/com/velocitypowered/proxy/connection/client/ConnectedPlayer.java
2020-05-25 13:27:44 -04:00
Andrew Steinborn
abd81a0216
Fix Checkstyle errors.
2020-05-25 13:24:41 -04:00
Andrew Steinborn
0cb4c02107
Run all commands on a separate thread pool.
2020-05-25 13:09:04 -04:00
Andrew Steinborn
ec1fc3944d
Make sure this runs on the event loop.
2020-05-25 12:08:24 -04:00
Andrew Steinborn
942e2f2e1a
Better generic cleanup.
2020-05-25 11:56:56 -04:00
Andrew Steinborn
74ff56cbc9
Also reset when an exception is thrown.
2020-05-25 11:49:45 -04:00
Andrew Steinborn
64c16e61d2
Reset in-flight connection only if the server disconnects the client.
2020-05-25 11:44:02 -04:00
Andrew Steinborn
b0f1398b45
Further confinement of preconnect checks to event loop.
2020-05-25 10:26:05 -04:00
Andrew Steinborn
fa954ab717
Confine preconnect validation/setup logic to event loop.
2020-05-25 09:38:41 -04:00
Andrew Steinborn
75ddeb062f
Confine preconnect validation/setup logic to event loop.
2020-05-25 09:38:22 -04:00
Andrew Steinborn
a98a7dd67e
Merge branch 'dev/1.1.0' into decode-multiple
2020-05-24 11:41:17 -04:00
Andrew Steinborn
793e938dd1
Drop macOS native support
...
This served a good purpose when I used macOS as a primary development system, but those days are gone (I use Linux now). The spirit of multiple variants is preserved by our special Java 11+ optimized compression.
2020-05-24 10:58:28 -04:00
Andrew Steinborn
b3bd773fea
Switch out Cloudflare zlib for libdeflate.
...
libdeflate is significantly faster than vanilla zlib, zlib-ng, and Cloudflare zlib. It is also MIT-licensed (so no licensing concerns). In addition, it simplifies a lot of the native code (something that's been tricky to get right).
While we're at it, I have also taken the time to fine-time compression in Velocity in general. Thanks to this work, native compression only requires one JNI call, an improvement from the more than 2 (sometimes up to 5) that were possible before. This optimization also extends to the existing Java compressors, though they require potentially two JNI calls.
2020-05-24 10:56:26 -04:00
Andrew Steinborn
742b8d98cb
Fix noexecstack for natives.
2020-05-20 04:55:55 -04:00
Andrew Steinborn
91e9769c5a
Cap /server list to 50 servers.
...
Any more, and the server list is arguably useless. Thanks to BXBW for finding this particular issue!
2020-05-17 00:24:00 -04:00
Andrew Steinborn
feb7c2f893
Reject invalid tab complete command requests.
2020-05-08 18:22:21 -04:00
Andrew Steinborn
b42045c050
Reject invalid tab complete command requests.
2020-05-08 18:17:02 -04:00
Andrew Steinborn
2418cc271a
Merge pull request #307 from mikroskeem/feature/prevent-proxy-connections
...
Add prevent-proxy-connections option
2020-05-08 14:57:20 -04:00
Mark Vainomaa
21f03d5d50
Add prevent-proxy-connections option to make sending client IP to Mojang toggleable
2020-05-08 21:16:12 +03:00
Andrew Steinborn
4d62d61485
We're well into 2020, just saying.
2020-05-08 14:04:07 -04:00
Andrew Steinborn
3bc8323ed5
We're well into 2020, just saying.
2020-05-08 14:03:35 -04:00
Andrew Steinborn
5424c55f09
Merge pull request #301 from Leymooo/command-event
...
fix build
2020-04-30 01:13:30 -04:00
Leymooo
4b4ed02e8d
fix build
2020-04-30 01:00:12 +03:00
Andrew Steinborn
42ad7594ae
Merge pull request #300 from Leymooo/command-event
...
fix command forwarding to server
2020-04-29 15:26:29 -04:00
Leymooo
d096eb3429
update class javadoc
2020-04-29 22:15:33 +03:00
Leymooo
aa55af8eb7
fix command forwarding
2020-04-29 22:13:16 +03:00
Andrew Steinborn
e759668f53
Merge pull request #299 from Leymooo/command-event
...
Add event for commands
2020-04-29 12:51:47 -04:00
Andrew Steinborn
37a1a49fda
Allow disabling BungeeCord plugin message channel.
2020-04-28 14:10:54 -04:00
Leymooo
9d6689f64a
forgot annotation
2020-04-27 13:12:03 +03:00
Leymooo
26bf94f08f
fix typos, update javadocs
2020-04-27 13:09:04 +03:00