Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't reconnect to a udp server #18

Open
vlappa opened this issue Jul 6, 2023 · 1 comment
Open

Can't reconnect to a udp server #18

vlappa opened this issue Jul 6, 2023 · 1 comment

Comments

@vlappa
Copy link

vlappa commented Jul 6, 2023

Serve returns, which makes it impossible to start 'dispatching' if a server stops and is restarted?

https://github.com/scgolang/osc/blob/v0.11.1/udp.go#L110

osc/osc.go

Line 134 in ba4a707

func serve(r readSender, numWorkers int, exactMatch bool, dispatcher Dispatcher) error {

osc/osc.go

Line 153 in ba4a707

// If the connection is closed or the context is canceled then stop serving.

@vlappa
Copy link
Author

vlappa commented Jul 6, 2023

One can start to Serve again, after Serve has returned a error, then it's possible to dispatch the osc messages again. Not sure if that's the intended and best practice

https://pkg.go.dev/github.com/scgolang/osc#UDPConn.Serve.

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

No branches or pull requests

1 participant