Closed goncalotomas closed 2 months ago
@mtrudel I ended up not being able to test the HTTP2 part, let me know if you can think of a way to test this, and feel free to add changes.
Refactored the implementation to be shared (I've been meaning to do that for a while anyway!) and added some docs.
Pending your approval of these changes we can get this merged!
I can only see my single commit in this PR, not sure if you've pushed your changes?
I approve whichever changes you feel are appropriate to get this merged, so feel free to push + merge :)
Thank you!
Huh, you're right - GitHub didn't allow me to push the changes up. Did you enable 'allow edits' per https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/working-with-forks/allowing-changes-to-a-pull-request-branch-created-from-a-fork?
That option was preselected, it was enabled when I submitted the PR and it looks like it still is:
I'll try disabling and re-enabling the option, but I don't know why this happened. 😕
I've done the disable / re-enable thing on the checkbox, plus I've invited you as a collaborator on my fork to see if that fixes it. I've done a couple of PRs after forking a repo and I've never had this issue before 🤔
I've done a couple of PRs after forking a repo and I've never had this issue before 🤔
It seems to happen about 25% of the time, not entirely sure why.
In any case, i seem to have messed it up even worse ðŸ˜
Eesh. Fixed now, ready for review.
Good call making this new option have the same values as log_protocol_errors
! I struggled to decide whether or not to make it a simple boolean option but I agree this is more consistent with the existing behaviour.
The docs bit completely slipped my mind 😅 Looks good to me, feel free to merge!
Thanks for the PR! I'm going to bundle this with a few other pending / recent changes and do a release this coming weekend.
Created as a result from this discussion This PR adds a new http option,
log_client_closures
, that allows users to silenceBandit.HTTP
errors that stem from clients closing the connection. The option defaults tofalse
.