Skip to content

FFM-11006 Add Connection close header #141

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

Merged
merged 3 commits into from
Mar 22, 2024
Merged

FFM-11006 Add Connection close header #141

merged 3 commits into from
Mar 22, 2024

Conversation

jcox250
Copy link
Contributor

@jcox250 jcox250 commented Mar 22, 2024

What

  • Adds a connection close header to the http requests to prevent connections being re-used

Why

  • We were seeing every other POST /metrics request fail with an EOF error but when we ran with the debugger this didn't happen. After some research it seems like this can happen due to the way the http client tries to re-use connections. Adding this header means we'll close the connection once the request has completed

Testing

  • Tested this fix out locally

jcox250 and others added 2 commits March 22, 2024 13:50
**What**

- Adds a connection close header to the http requests to prevent
  connections being re-used

**Why**

- We were seeing every other POST /metrics request fail with an EOF
  error but when we ran with the debugger this didn't happen. After some
research it seems like this can happen due to the way the http client
tries to re-use connections. Adding this header means we'll close the
connection once the request has completed

**Testing**

- Tested this fix out locally
Copy link
Contributor

@erdirowlands erdirowlands left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good 🚀
Just investigating the build error (not related to your change).

@erdirowlands erdirowlands mentioned this pull request Mar 22, 2024
@jcox250 jcox250 merged commit 5546ef7 into main Mar 22, 2024
3 checks passed
@jcox250 jcox250 deleted the FFM-11006 branch March 22, 2024 17:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants