openframeworks / openframeworks/openFrameworks

TCPServer slow down when there's a client connected on RPi4/buster

Open
#6,513 4 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

I've made a post on the forum, but i'm reporting here too, because i think it's a bug.
With Raspberry Pi4/buster, when i create a TCPServer listening for incoming connections, when a client connect, the app slow down a lot (from 60FPS to ~20/25).
You can test this behaviour with the TCPServer example (https://github.com/openframeworks/openFrameworks/tree/patch-release/examples/communication/networkTcpServerExample)
Just run it, and connect (even from the same machine, with nc, or maybe (not tested) with the companion example TCPClient). So it's not a network issue.
Same app in other linux distros runs fine.

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

Start with the examples/communication/networkTcpServerExample example and reproduce the FPS drop on Raspberry Pi 4 with Buster while connecting via nc or the TCPClient example. Compare the behavior with other Linux distributions and inspect the TCPServer connection path; done means identifying and fixing the slowdown without reducing the example's frame rate.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, raspberry-pi
Domain
embedded-iot, networking, performance
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.