Closed wolfendale closed 5 months ago
This probably should have targeted the branch in #48 rather than master, since now we have 2 PRs for the exact same changes. But since that one is kinda outdated now I'll just close it in favor of this one
In the future though if there's already an active pull request for changes you want to make, just PR into that feature branch
This probably should have targeted the branch in #48 rather than master, since now we have 2 PRs for the exact same changes. But since that one is kinda outdated now I'll just close it in favor of this one
In the future though if there's already an active pull request for changes you want to make, just PR into that feature branch
This wasn't really intended as a PR that would be merged as much as me trying to get some thoughts on the topic onto GitHub to be discussed. Not sure if there's a better format for that?
This wasn't really intended as a PR that would be merged as much as me trying to get some thoughts on the topic onto GitHub to be discussed. Not sure if there's a better format for that?
That's fair. I can't think fo a better format for this, but that being said if the work to actually implement things is being done then I don't see why it wouldn't be a PR intended for merge?
LGTM. @DaniElectra anything else?
Related to #48
Changes:
This makes selective changes to the connection state checks and moves the logic of resetting the connection heartbeat to after we've determined if a packet is valid for the current connection state. ~This means that connections won't be kept alive by invalid traffic.~ I'm no longer convinced the last statement there is true. That change may be redundant as the connection would already be dead and
resetHeartbeat
wouldn't do anything but it's still probably right that we only allow valid packets to keep a connection alive.I've added reasoning for each change as comments in this PR