question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Question: how to deal with connection timeouts?

See original GitHub issue

node.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:closed
  • Created 5 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
jbielickcommented, Feb 12, 2019

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.

This should be resolved in v3.0.0

1reaction
jbielickcommented, Nov 16, 2018

@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.2 on 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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found