openframeworks / openframeworks/openFrameworks

ofxTcpClient to reconnect the problem

Open
#5,778 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C++
Stars
10.4k
Forks
2.6k
Avg merge
1d 21h
Merged PRs (30d)
9

Description

hi, I encountered a problem when the tcp client reconnects the server.
When the server starts, the client starts, the program is running normally.
When the server is shut down and then reopened, the client enters the reconnected state,After the reconnection was successful, I found that the number of frames on the client dropped below 10,And the client program seems to stop in the receive function here.
Forgive my grammatical mistakes, I use the OF0.9.8 version, the program is examples / addons / networkTcpClientExample and examples / addons / networkTcpServerExample
@arturoc

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

Reproduce the problem with examples/addons/networkTcpClientExample and examples/addons/networkTcpServerExample by restarting the server while the client runs. Inspect the client’s reconnection path and the receive function to determine why frames drop below 10 after reconnecting. Done means the client continues receiving normally after the server is reopened.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.