Question: how to deal with connection timeouts?
See original GitHub issuenode.js version: v11.0.0 npm/yarn version: 6.4.1 faktory-server version: 0.9.1
facktory-worker package version:
Code sample:
Error: read ETIMEDOUT
at TCP.onStreamRead (internal/stream_base_commons.js:111:27) errno: 'ETIMEDOUT', code: 'ETIMEDOUT', syscall: 'read'
Unhandled Rejection at: Promise Promise {
<rejected> Error: Connection closed
at Client.onClose (/app/node_modules/faktory-worker/lib/client.js:327:26)
at Socket.emit (events.js:182:13)
at Socket.EventEmitter.emit (domain.js:442:20)
at TCP._handle.close (net.js:606:12)
This means I should check for errors? If this error happens there is no reconnection to faktory (never starts processing jobs)
Issue Analytics
- State:
- Created 5 years ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
Read and Connection Timeout Handling | Paylosophy
Connection timeout indicates that connection with the back end is impossible, and the server, to which the data needs to be transferred, cannot ......
Read more >What is a connection timeout during a http request
Connection timeout - is a time period within which a connection between a client and a server must be established. Suppose that you...
Read more >How to catch and handle a "Connection Timeout" error with an ...
I am trying to use a try/catch shape to handle an HTTP Client connector failure "Connection Time". To be clear, I am focing...
Read more >Stop connection timeouts from happening - want the page to ...
Try adjusting the http.response.timeout setting. In version 28 this was not set. In version 29 it is set to 300 (5 minutes). Increasing...
Read more >[SOLVED] How to Fix the ERR_CONNECTION_TIMED_OUT ...
An 'err connection timed out' error is something that can be easily fixed by updating your system's network adapter driver. We recommend using ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

This should be resolved in v3.0.0
@aledbf
Thanks for the info.
I overlooked setting keepalive on the TCP socket for this library. It’s been enabled and a new version published @
v.2.2.2on npm. I suspect kube-proxy (?) or the faktory server itself was disconnecting due to inactivity.I consider the second part of this issue—not reconnecting and ceasing job processing—to be an outstanding issue and I’ll start working on that as well.