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

add keepalive_timeout flag #6674

Merged
merged 5 commits into from
Aug 30, 2023

Conversation

fenwuyaoji
Copy link
Contributor

@fenwuyaoji fenwuyaoji commented Aug 11, 2023

Issue

[What issue is this PR targeting? If there is no issue that addresses the problem, please open a corresponding issue and link it here.]
Relevant to:
#6673 Rquire a configurable parameter to set keepalive_timeout.

Please read our documentation on release and version management.
If your PR is still work in progress please attach the relevant label.

Tasklist

Requirements / Relations

Link any requirements here. Other pull requests this PR is based on?

@fenwuyaoji fenwuyaoji closed this Aug 14, 2023
@fenwuyaoji fenwuyaoji reopened this Aug 14, 2023
fenwuyaoji

This comment was marked as duplicate.

@mjjbell
Copy link
Member

mjjbell commented Aug 18, 2023

Please run scripts/format.sh on your branch. Otherwise, looks good.

@fenwuyaoji
Copy link
Contributor Author

@mjjbell Thanks for your comment, I have fixed the format problem, could you rerun the workflow?

@fenwuyaoji
Copy link
Contributor Author

@mjjbell Sorry for the late response. I checked the page https:/Project-OSRM/osrm-backend/blob/master/CONTRIBUTING.md and added
.git/hooks/pre-push to my local env and all things look good in my env now. I hope this time can pass the workflow. Could you trigger the workflow again?

@fenwuyaoji
Copy link
Contributor Author

@mjjbell Sorry to disturb you again. I saw there was one test case that didn't pass. I'm not familiar with the js test so I just copied and modified another one as mine. Now I notice that, if I want to throw an error, I should first define it in node_osrm_support.hpp. I checked the case and thought it unnecessary so I deleted it. Could you rerun it?

@fenwuyaoji
Copy link
Contributor Author

@mjjbell Really appreciate! Have a good day~

@@ -131,6 +131,12 @@ test('constructor: throws if default_radius is not a number', function(assert) {
assert.ok(new OSRM({algorithm: 'MLD', path: monaco_mld_path, default_radius: 'unlimited'}), 'Does accept unlimited');
});

test('constructor: takes a keepalive_timeout argument', function(assert) {
assert.plan(1);
var osrm = new OSRM({algorithm: 'MLD', path: monaco_mld_path, keepalive_timeout: 10});
Copy link
Member

Choose a reason for hiding this comment

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

The Node bindings do not use the HTTP server, so the keepalive_timeout won't do anything here.
I would just remove the test.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure, I just remove it.

@mjjbell mjjbell merged commit 14dcf91 into Project-OSRM:master Aug 30, 2023
20 checks passed
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