socketio / socketio/socket.io

Consistent socket timeout

Open
#3,910 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

documentation
Dominant language
TypeScript
Stars
63.2k
Forks
10.3k
Avg merge
11d 20h
Merged PRs (30d)
2

Description

Socket client and server version v4.0.2
Socket redis adapter v6.1.0

My socket.io client is creating a new connection consistently every 4-5minutes.
It calls the event connection_error with the error ping_timeout.
It continues to reconnect immediately without issue.

My setup is the following.
Clients connect to server only to listen for messages that are emitted every ~2minutes with no expected response from the client.

I am using AWS EBS with application load balancer with sticky connections.

Screen Shot 2021-05-06 at 17 34 43 image

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No source file, test, or entry point is identified. Begin by reproducing the v4.0.2 client/server setup with the AWS EBS application load balancer and observing the connection_error and ping_timeout timing. Done means explaining the recurring reconnect and documenting a verified resolution or narrowed-down cause.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, nodejs
Domain
networking
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.