Skip to content

[Feature Request]: Prevent Duplicate TCP connections #7582

@jake-b

Description

@jake-b

Platform

ESP32, Cross-Platform, Linux Native

Description

The firmware allows multiple connections to its TCP socket, but the sockets are not partitioned with their own state. This causes connections from multiple devices to fight over the connection.

Two enhancements to mitigate this:

  1. Gracefully stop advertising the node over mDNS when a TCP client connects. Ideally sending the proper goodbye packets (https://datatracker.ietf.org/doc/html/rfc6762#section-10.1). mDNS should begin advertising again when the connected TCP client disconnects.
  2. If possible, the TCP listener should stop listening when there is an active connection and start listening again when the connection disconnects.

Metadata

Metadata

Labels

enhancementNew feature or requesthelp wantedWe'd welcome help on this issuehigh-priorityIssues that affect core functionality or are "show stoppers"triagedReviewed by the team, has enough information and ready to work on now.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions