bartbes / love-misc-libs

Just some random libs I have lying around, now with version control!
http://docs.bartbes.com
110 stars 28 forks source link

LUBE: Sending to the server right before disconnect causes issues #16

Open videah opened 9 years ago

videah commented 9 years ago

Calling client:send() right before client:disconnect() causes the handshake to appear in the message from client:send().

For example, if the handshake was "123":

client:send("Testing")
client:disconnect()

What should be received: "Testing"

What is actually received: "Testing123-"

Because of this, the client isn't properly disconnected either.

bartbes commented 9 years ago

Thanks for reporting, I know what the problem is, but it's going to take a bit until I can get around to fixing it.

videah commented 9 years ago

Any update on when this will get fixed?

bartbes commented 9 years ago

I did some work today implementing the lubeClient and lubeServer, they're a tad above udp, and it shouldn't have these issues. I've not tested it much, so it might break randomly, but you could give it a try, if you want to.