-
Notifications
You must be signed in to change notification settings - Fork 30
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
should reconnect instantiate a new socket on every attempt? #15
Comments
It is True. |
Yes, it's even worse: The existing UDP Sockets will not be closed when reconnecting. After a while at least on Windows an application will not be able to reconnect anymore as there are no local ports left. Do you have a quick fix for this? |
I modified and moved creation of UDP socket to the constructor. It only On Sun, Nov 13, 2016 at 7:40 AM, susdorf notifications@github.com wrote:
|
Thanks, I have edited the connect method to close an existing socket before creating a new one. This has also worked for me. I did not know a reconnection is really needed or not and how ATEM handles clients internally. But good to know your approach also works fine. |
I see that every time a connection is attempted a new udp socket is created. Should this be the case? Shouldn't the hello command just be sent out again only?
Also, I don't believe it's necessary do a manual bind since node auto-binds to a random port when you send out your first packets.
The text was updated successfully, but these errors were encountered: