Skip to content
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

fix(web): Allow configuration of read-buffer-size #675

Merged
merged 1 commit into from Feb 7, 2024

Conversation

TwiN
Copy link
Owner

@TwiN TwiN commented Feb 7, 2024

Summary

This fixes the 431 Request Header Fields Too Large error

By default, the read-buffer-size is 8192, up from fiber's default of 4096.

Fixes #674
Fixes #636
Supersedes #637
Supersedes #663

Checklist

  • Tested and/or added tests to validate that the changes work as intended, if applicable.
  • Updated documentation in README.md, if applicable.

This fixes the `431 Request Header Fields Too Large` error

By default, the read-buffer-size is 8192, up from fiber's default of 4096.

Fixes #674

Fixes #636

Supersedes #637

Supersedes #663
@TwiN TwiN added the bug Something isn't working label Feb 7, 2024
@TwiN TwiN added the area/networking Related to networking label Feb 7, 2024
@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (3d1b4e5) 78.57% compared to head (1fa8849) 78.56%.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #675      +/-   ##
==========================================
- Coverage   78.57%   78.56%   -0.01%     
==========================================
  Files          58       58              
  Lines        4746     4759      +13     
==========================================
+ Hits         3729     3739      +10     
- Misses        831      833       +2     
- Partials      186      187       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@TwiN TwiN merged commit 2a623a5 into master Feb 7, 2024
2 checks passed
@TwiN TwiN deleted the fix/read-buffer-size branch February 7, 2024 23:54
@mingchuno
Copy link

mingchuno commented Mar 1, 2024

@TwiN Can we make a new release with this change? Our production env is seeing the "Request Header Fields Too Large" error and we cannot use the latest docker tag due to policy constrain.

What can I do to help expedite? Thank You.

github-merge-queue bot pushed a commit to chezmoi-sh/nex.rpi that referenced this pull request Mar 23, 2024
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Update | Change | OpenSSF |
|---|---|---|---|
| [TwiN/gatus](https://togithub.com/TwiN/gatus) | minor | `v5.7.0` ->
`v5.8.0` | [![OpenSSF
Scorecard](https://api.securityscorecards.dev/projects/github.com/TwiN/gatus/badge)](https://securityscorecards.dev/viewer/?uri=github.com/TwiN/gatus)
|

---

### Release Notes

<details>
<summary>TwiN/gatus (TwiN/gatus)</summary>

### [`v5.8.0`](https://togithub.com/TwiN/gatus/releases/tag/v5.8.0)

[Compare
Source](https://togithub.com/TwiN/gatus/compare/v5.7.0...v5.8.0)

##### What's Changed

- feat(client): Add Google's Identity-Aware-Proxy in client config by
[@&#8203;Kloox](https://togithub.com/Kloox) in
[TwiN/gatus#600
- feat(client): Add client network configuration for ICMP endpoint
clients by [@&#8203;n-thumann](https://togithub.com/n-thumann) in
[TwiN/gatus#661
- feat(http): enhance HTTP client configuration with proxy support by
[@&#8203;appleboy](https://togithub.com/appleboy) in
[TwiN/gatus#668
- feat: add ability to delay startup by
[@&#8203;vax-r](https://togithub.com/vax-r) in
[TwiN/gatus#631
- feat: shields.io endpoint badge by
[@&#8203;buroa](https://togithub.com/buroa) in
[TwiN/gatus#652
- fix(web): Allow configuration of read-buffer-size by
[@&#8203;TwiN](https://togithub.com/TwiN) in
[TwiN/gatus#675
- fix: Allow binding IPv6 addresses for web by
[@&#8203;n-thumann](https://togithub.com/n-thumann) in
[TwiN/gatus#650
- build: refine Makefile targets and build command by
[@&#8203;appleboy](https://togithub.com/appleboy) in
[TwiN/gatus#666
- refactor(alerting): Use pointer for receiver in
AlertProvider.GetDefaultAlert method by
[@&#8203;TwiN](https://togithub.com/TwiN) in
[TwiN/gatus#676
- docs(alerting): Fix wrong gitlab terminology (alert key vs. PAT) by
[@&#8203;salim-b](https://togithub.com/salim-b) in
[TwiN/gatus#694
- chore(deps): bump actions/setup-go from 4 to 5 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[TwiN/gatus#634
- chore(deps): bump golang.org/x/crypto from 0.14.0 to 0.18.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[TwiN/gatus#649
- chore(deps): bump modernc.org/sqlite from 1.26.0 to 1.28.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[TwiN/gatus#654
- chore(deps): bump codecov/codecov-action from 3.1.4 to 3.1.6 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[TwiN/gatus#669
- chore(deps): bump codecov/codecov-action from 3.1.6 to 4.0.1 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[TwiN/gatus#671
- chore(deps): bump github.com/prometheus/client_golang from 1.17.0 to
1.18.0 by [@&#8203;dependabot](https://togithub.com/dependabot) in
[TwiN/gatus#658
- chore(deps): bump github.com/gofiber/fiber/v2 from 2.49.2 to 2.52.1 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[TwiN/gatus#682
- chore(deps): bump github.com/TwiN/deepmerge from 0.2.0 to 0.2.1 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[TwiN/gatus#684
- chore(deps): bump golang.org/x/oauth2 from 0.13.0 to 0.18.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[TwiN/gatus#701

##### New Contributors

- [@&#8203;Kloox](https://togithub.com/Kloox) made their first
contribution in
[TwiN/gatus#600
- [@&#8203;n-thumann](https://togithub.com/n-thumann) made their first
contribution in
[TwiN/gatus#650
- [@&#8203;buroa](https://togithub.com/buroa) made their first
contribution in
[TwiN/gatus#652

**Full Changelog**:
TwiN/gatus@v5.7.0...v5.8.0

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/chezmoi-sh/nex.rpi).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4yNjEuMCIsInVwZGF0ZWRJblZlciI6IjM3LjI2MS4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9-->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/networking Related to networking bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Request Header Fields Too Large Request Header Fields Too Large 431
3 participants