-
Notifications
You must be signed in to change notification settings - Fork 169
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
Error handling #157
Comments
Here is a comment from
This is why. |
Yes I understand the comment. The issue I am having is these two errors are being masked/not returned or propagated. If the error EAGAIN, error i am receiving, is received my application code should retry again but since I never received the error I have no way of making a smart application level decision. I would happily make a PR to allow for these values to be propagated if you agree they should be. |
Feel free to contribute, would be great to have another one Decode function, let's name it Decode2 for backward compatibility |
Hello,
I just started to use this package and I stumbled across some interesting behavior, I noticed that whenever a
syscall.EAGAIN
is received no error is returned and potentially a nil value is also returned. Example 1 Example 2Typically in Go you would propagate an error like this to allow the application layer to be able to change behavior.
Is there a particular reason for not propagating the error?
The text was updated successfully, but these errors were encountered: