Skip to content

Commit

Permalink
conn.go: Allow split packets of up to 512 fragments.
Browse files Browse the repository at this point in the history
  • Loading branch information
Sandertv committed Apr 7, 2024
1 parent 254640d commit eb2c881
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion conn.go
Original file line number Diff line number Diff line change
Expand Up @@ -671,7 +671,7 @@ func (conn *Conn) handleConnectionRequestAccepted(b []byte) error {
// packet of its sequence, it will continue handling the full packet as it
// otherwise would. An error is returned if the packet was not valid.
func (conn *Conn) receiveSplitPacket(p *packet) error {
const maxSplitCount = 128
const maxSplitCount = 512
const maxConcurrentSplits = 4

if p.splitCount > maxSplitCount && conn.limits {
Expand Down

0 comments on commit eb2c881

Please sign in to comment.