DisableBatchPacketLimit on listener #114
Unanswered
AsherMaximum
asked this question in
Q&A
Replies: 1 comment 3 replies
-
Hi! Thanks for reporting this. This is an issue in gophertunnel and I will look into increasing the maximum amount of packets in a batch. This is an anti-DoS check. Do you have an estimate of the highest number you've see in this error message? Has it ever gone over 1000? |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
My clients keep getting disconnected, and the message log shows "error reading from listener connection: number of packets 782 in compressed batch exceeds 768"
I can see that on conns from a Dial, the function DisableBatchPacketLimit() is called on the decoder when it is created.
For the listener, it is not.
I've worked around this issue by just changing the limit
maximumInBatch = 1024 + 1024
in decoder.go, but I'm hoping there's a way I can do this without keeping my own modified copy of gophertunnel.Is there a way to increase or disable the packet limit for Listener conns?
Beta Was this translation helpful? Give feedback.
All reactions