Skip to content

Prevent blocking when remote is not reachable#89

Open
Seneral wants to merge 1 commit intohoijui:masterfrom
Seneral:master
Open

Prevent blocking when remote is not reachable#89
Seneral wants to merge 1 commit intohoijui:masterfrom
Seneral:master

Conversation

@Seneral
Copy link
Copy Markdown

@Seneral Seneral commented Apr 28, 2026

This PR configures OSCPortOut (using connect function) using UDP to never block
This happens on e.g. linux, blocking for up to 3s when remote is unreachable while the system tries to reach the target
In the spirit of UDP "send and forget", it should be non-blocking
Any packets may be queued by OS or dropped, we don't care

A lot of applications will not be written to handle this because it really only happens when it is misconfigured or used in non-operating conditions, and can thus cause undesired behaviour like freezing

Configured OSCPortOut using UDP to never block
This happens on e.g. linux, blocking for up to 3s when remote is unreachable
In the spirit of UDP "send and forget", it should be non-blocking
Any packets may be queued by OS or dropped, we don't care
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant