NetrexMC / RakNet

RakNet implementation in Rust
Apache License 2.0
44 stars 12 forks source link

[BUG] Malformed Packet #65

Open ABOTHET opened 1 month ago

ABOTHET commented 1 month ago

I can't send a packet that weighs about more than 1600 bytes.

C→S: [Resource Pack Client Response] (I receive confirmation that it is possible to send a "Start Game" packet) S→C: [Start Game] (I am sending a packet that is about more than 1600 bytes and nothing happens, but in the wireshark program it shows a "malformed packet");

I guarantee that the interaction with the client was correct before, which means that the problem is in the library. It seems that the library cannot split the packet into raknet fragments in order to send it to the client in parts.

BpeaBsHoaa8 image

1 screen (

1 packet is | C→S: The client's response to the resource package,

2 packet is | S→C: Start game Which is about more than 1600 bytes

)

screen 2, the same data, but I have reduced the "Start Game" packet.

Moreover, I receive a large "Login" package from the client without any problems. (screen 3) image

I used a translator, so the message may be incorrect.

john-bv commented 1 month ago

Have you tried using #38?

john-bv commented 1 month ago

nevermind, can you provide your code sample for me please, so i have a better understanding of this issue?

ABOTHET commented 1 month ago

I wrote to you in the discord

theaddonn commented 1 month ago

I wonder how this was never spotted in the raknet impl while developing Netrex

theaddonn commented 1 month ago

I have had the same issue for months, tho my StartGamePacket is only 1254 bytes

john-bv commented 1 month ago

definitely an oversight from lack of tests. I will work on this soon:tm: