Closed rlyshw closed 2 years ago
Thanks for pointing this out, a default timeout of 20s is now added to the service requester so that the healthcheck will timeout if no service is available, as any other operation. This can also be configured: https://github.com/kalisio/feathers-distributed#remote-services.
@rlyshw Could you please check with the master branch ?
@claustres looks good to me, the .healthcheck function on the remote service is a nice addition :)
Steps to reproduce
There is no documentation to specify a project-wide requester COTE_REQUEST_TIMEOUT, but setting this does resolve the issue. (https://github.com/dashersw/cote#timeout)
Expected behavior
The healthchecks should timeout when the other service is unavailable
Actual behavior
The healthcheck request spins forever
System configuration
If it matters, I'm running this from a feathersjs-generated project in typescript.
Module versions (especially the part that's not working):
"@kalisio/feathers-distributed": "github:kalisio/feathers-distributed" whatever version this resolves ot at time of writing (whatever the included version of cotejs is)
NodeJS version: v18.7.0
Operating System: Running in a docker container: node:current-alpine
Browser Version: n/a
React Native Version: n/a
Module Loader: in my tsconfig.json "module": "Node16",