-
Notifications
You must be signed in to change notification settings - Fork 5
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
Unreleased semaphore blocks httprc indefinitely if a Transform panics #33
Comments
I've open #33 which should fix the issue |
IIRC, that |
I think it's troublesome that a Since a We run this lib in a REST/GQL service and I as a client did not expect that panic would block my GQL resolvers/REST handlers :D I've already protected my |
No, I'm not arguing against putting a fix, but I'm suggesting that you could protect the call to (As an side: I don't disagree with needing to handle error cases like this, but TBH if you have the leeway to do so, I'd reconsider using RSS/XML libraries that panic instead of returning errors) |
Ah, I misunderstood, I'll try to give it a go this weekend on protecting the |
Description
The semaphore acquired here
httprc/cache.go
Line 155 in e71784b
defer
If a
Transform
panics the semaphore is never released, and the next call to aCache.Get
will block indefinitelyThe text was updated successfully, but these errors were encountered: