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(dashmate): increase HTTP timeout to Github / MNOWatch #2055

Closed
wants to merge 392 commits into from

Conversation

pshenmic
Copy link
Collaborator

Issue being fixed or feature implemented

The client HTTP timeout set by default is too low for the status function. In case of big IO, especially on the sync, it takes more time to receive response from the server, it leads to invalid port state being shown in the dashmate status.

What was done?

Increased client HTTP timeout from 6 seconds to 60 seconds

How Has This Been Tested?

By community member

Breaking Changes

No

Checklist:

  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have added or updated relevant unit/integration/functional/e2e tests
  • I have added "!" to the title and described breaking changes in the corresponding section if my code contains any
  • I have made corresponding changes to the documentation if needed

For repository code-owners and collaborators only

  • I have assigned this pull request to a milestone

lklimek and others added 30 commits April 16, 2024 14:11
shumkov and others added 20 commits July 29, 2024 22:09
@pshenmic pshenmic added this to the v1.1.0 milestone Aug 14, 2024
@pshenmic pshenmic self-assigned this Aug 14, 2024
@@ -1,6 +1,6 @@
import { PortStateEnum } from './enums/portState.js';

const MAX_REQUEST_TIMEOUT = 5000;
const MAX_REQUEST_TIMEOUT = 60000;
Copy link
Member

Choose a reason for hiding this comment

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

We can't wait 1 to respond with status command. I recommend to keep 7 second and print some specific warning like response from service is timed out

@shumkov shumkov changed the base branch from v1.1-dev to master August 25, 2024 07:39
@shumkov shumkov requested a review from antouhou as a code owner August 25, 2024 07:39
@thephez thephez removed this from the v1.1.0 milestone Sep 19, 2024
@shumkov
Copy link
Member

shumkov commented Sep 30, 2024

@pshenmic please reopen PR if are are going to proceed on this

@shumkov shumkov closed this Sep 30, 2024
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.