Skip to content

add keepalive_timeout flag#6674

Merged
mjjbell merged 5 commits intoProject-OSRM:masterfrom
fenwuyaoji:keepalive_timeout-flag
Aug 30, 2023
Merged

add keepalive_timeout flag#6674
mjjbell merged 5 commits intoProject-OSRM:masterfrom
fenwuyaoji:keepalive_timeout-flag

Conversation

@fenwuyaoji
Copy link
Copy Markdown
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
Copy Markdown
Member

mjjbell commented Aug 18, 2023

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

@fenwuyaoji
Copy link
Copy Markdown
Contributor Author

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

@fenwuyaoji fenwuyaoji force-pushed the keepalive_timeout-flag branch from c3a8e5e to 31c044a Compare August 28, 2023 02:31
@fenwuyaoji
Copy link
Copy Markdown
Contributor Author

@mjjbell Sorry for the late response. I checked the page https://github.com/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
Copy Markdown
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
Copy Markdown
Contributor Author

@mjjbell Really appreciate! Have a good day~


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
Copy Markdown
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
Copy Markdown
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
eliseier pushed a commit to wanderlog/osrm-backend that referenced this pull request Mar 25, 2025
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