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 timeout to request #125

Merged
merged 1 commit into from
Oct 3, 2018
Merged

Add timeout to request #125

merged 1 commit into from
Oct 3, 2018

Conversation

cakuki
Copy link
Contributor

@cakuki cakuki commented Sep 24, 2018

Timeout in milliseconds could be provided in advertisement options of per Requester, or via COTE_REQUEST_TIMEOUT environment variable for all Requesters. Also request specific timeout option could be included in data section with property __timeout.

Fixes #123

@dashersw dashersw mentioned this pull request Sep 25, 2018
@coveralls
Copy link

coveralls commented Sep 27, 2018

Coverage Status

Coverage increased (+2.1%) to 95.808% when pulling 6195b87 on cakuki:feature/request-timeout into 640d9ef on dashersw:master.

@cakuki
Copy link
Contributor Author

cakuki commented Sep 27, 2018

I don't know why it only fails on node 4. The error does not seem to exist in former builds:
SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode

Also if you look at the coverage report, I actually increased the coverage on the files that I made changes. But somehow something and overall coverage rate has dropped. Maybe Coveralls' mechanism has changed.

I would take care of these issues in other issues.

test/request-response-timeout.js Outdated Show resolved Hide resolved
src/components/requester.js Outdated Show resolved Hide resolved
src/components/requester.js Outdated Show resolved Hide resolved
src/components/requester.js Outdated Show resolved Hide resolved
src/components/requester.js Outdated Show resolved Hide resolved
src/components/requester.js Outdated Show resolved Hide resolved
src/components/requester.js Outdated Show resolved Hide resolved
src/components/requester.js Show resolved Hide resolved
Timeout in milliseconds could be provided in advertisement options of
per Requester, or via COTE_REQUEST_TIMEOUT environment variable for all
Requesters. Also request specific timeout option could be included in
data section with property `__timeout`.
@dashersw
Copy link
Owner

dashersw commented Oct 3, 2018

Thank you! ❤

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.

4 participants