sean0x42 / mineshark

A (work in progress) packet sniffing proxy that sits between a Minecraft client and server. Essentially a MITM attack with custom middleware

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Race condition when establishing new connections

sean0x42 opened this issue · comments

There appears to be a race condition that occurs at the start of every new connection. About 60% of the time, the client will send its first packet before we have opened a connection with the server (I think), causing the connection to go silent.

I did attempt to resolve this issue by collecting all packets into a queue until the server explicitly fires the connect event, and then releasing the queue. But this has not resolved the issue.

More investigation is needed.

Closing! Moving to a new tech stack and this is no longer relevant