Run an explicit garbage collection between every 'n' keepalive requests on the same HTTP/1.1 connection in order to keep reported (but not actual!) memory usage from growing over time. Add gc_every_n_keepalive_requests option to configure this (default value of
5). #322, thanks @ianko & @Nilsonn!)
Add log_protocol_errors option to optionally quell console logging of 4xx errors generated by Bandit. Defaults to true for now; may switch to false in the future based on adoption (#321, thanks @Stroemgren!)
Changes
Don't send a transfer-encoding header for 1xx or 204 responses (#317, thanks
@mwhitworth!)
Disable logging of unknown messages received by an idle HTTP/1 handler to
avoid noise on long polling clients. This can be changed via the
log_unknown_messages http_1 option (#299)
1.2.0 (31 Jan 2024)
Enhancements
Automatically pull in :otp_app value in Bandit.PhoenixAdapter (thanks
@krns!)
Include response body metrics for HTTP/1 chunk responses
Fixes
Fix broken HTTP/1 inform/3 return value (thanks @wojtekmach!)
Maintain HTTP/1 read timeout after receiving unknown messages
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot show ignore conditions` will show all of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Bumps bandit from 1.1.3 to 1.3.0.
Changelog
Sourced from bandit's changelog.
Commits
4e8b2cb
Version bump to 1.3.002515fa
Run an explicit garbage collection between every 'n' keepalive requrests in H...41310dc
Provide config option to disable logging of protocol errors (#321)7237483
don't send the transfer-encoding: chunked header for 100..199, 204 (#317)5694d04
Bump thousand_island from 1.3.2 to 1.3.5 (#314)f36c703
Bump credo from 1.7.4 to 1.7.5 (#315)dd7ac25
Version bump to 1.2.357520c7
Show which port is in use when startup fails (#312)860fa45
Bump req from 0.4.8 to 0.4.11 (#309)62314a5
FormatDependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show