-
Notifications
You must be signed in to change notification settings - Fork 999
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
Don't panic in libp2p-websocket #2599
Conversation
Return an error instead. `quicksink` panics if you call a method after it returned an error once. Fixes libp2p#2598.
Do I understand correctly that something within the stack is calling |
This is correct.
The pull request does not silence an error, it will return with an error status once any error has been observed. To me, this seems like a strict improvement over the panic semantics, in fact the authors of quicksink also approved a pull request with this behavior: paritytech/quicksink#4. The pull request was reverted due to unrelated API concerns which don't apply to this change: paritytech/quicksink#6. The original pull request also included a usage scenario, though I haven't evaluated its usefulness:
|
I would expect other In which setup are you using the |
I don't expect other |
Just a friendly ping, any progress here? I heard other parachain teams also met this issue, don't know why |
@mxinden can we get this merged? Or should we open a pr with a better solution? |
As the conversation says, this PR is merely hiding the actual bug instead of fixing it, and it is IMO the wrong approach. If you want to help, you can help try to find the actual bug rather than pressuring to merge a PR. |
That would be very much appreciated. Referencing @tomaka's suspicion: #2598 (comment) |
Fixed with I am closing here. Thanks for the hep everyone! |
Return an error instead.
quicksink
panics if you call a method afterit returned an error once.
Fixes #2598.