did some more mining off camera

also posts can be hidden by prepending a _
This commit is contained in:
Snorre Ettrup Altschul 2025-02-07 00:45:54 +01:00
parent 302d405cc3
commit 63644ecc7f
8 changed files with 67 additions and 16 deletions

View file

@ -1,5 +1,7 @@
2
Minecraft Rust Async Networking Proxy CRIU
\title
\toc
# Minecraft servers are HUNGRY
They hunger for your ram and your cpu. This makes it either expensive or
@ -46,7 +48,7 @@ an internal port based on the subdomain. I quickly found out that this did
some research I decided on creating my own reverse proxy that spoke the
minecraft protocol instead of HTTP.
# The Minecraft protocol
## The Minecraft protocol
Minecraft implements its own protocol consistent of packets. My first idea was to see if anybody had created a
rust library for dealing with minecraft packets.
@ -56,7 +58,7 @@ was useful for seeing how an implementation of parsing packets was done, but ult
*images of minecraft protocol*
# Detecting the subdomain
## Detecting the subdomain
Luckily for me, the Minecraft procotol sends the full address it is trying to connect to during the handshake. This meant that I simply
had to parse the handshake and extract the subdomain from the address, see if it matches any configured server, and then redirect all
@ -76,7 +78,7 @@ but the sockets are connected on the kernel level.
After hours of debugging I found the solution. `stream.set_nodelay(true)`
## ...
**...**
**All this time the problem was as simple as saying ** `if (slow) { dont(); }`!