Attempting to connect to the WebSocket server with the same IP when its already connected.
Closed this issue · 5 comments
It just fails to connect, is there any setting that might be causing this or anything? I just want to be able to connect with the same IP, as it takes a bit to close the connection, so it won't let me connect until like 10 seconds have passed.
Can you share some code that highlights this issue?
Not really, all I have is some lua websocket code, and when I run it once, it works fine, if I run it twice, it fails. Along with once the client has been closed, it fails with connection failed, like it isn't even listening.
I just tested using the Test.Server
and Test.Client
projects and could not reproduce this. I'm not sure if the way I tested was the same as the way you did, but I:
- Started the server, left it running
- Started and connected a client
- Immediately terminated the process
- Started and connected another client
- Immediately terminated the process
- (repeat)
There was zero delay in establishing the new connection.
I also tested by using a single client and continually disconnecting and reconnecting. Again, no issue, no delay in establishing the new connection.
Moving to discussion, can't reproduce.