-
Notifications
You must be signed in to change notification settings - Fork 95
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to process first packet panic #18
Comments
Hi youngcow, It should make more sense if you put up an example. Cheers, |
Hi @youngcow, Many web frameworks has a "panic recovery" middleware, such as https://github.com/gin-gonic/gin/blob/develop/recovery.go#L25 Cheers, |
Project is idle? Panic error still happens
Tested with this
|
Not idle Thanks for the example, it will easier to fix |
For the ease of it, I'm just using the default complex example. |
Do we have any ETA on this? :) |
a trivial approach would be to recover client panics, like so:
|
Any update? |
A workaround solution for me was to create my own custom Listener, wrapping the server Listener, to validate the first Byte and drop the connection if it's not 0x30 during the Accept phase. It's ugly, but it does the trick. |
Hi,
This library is very well.
But when I send an incorrect byte in first packet, the process panic.
How should I process this panic?
Thanks.
The text was updated successfully, but these errors were encountered: