online-fps icon indicating copy to clipboard operation
online-fps copied to clipboard

Wait for sends to complete in ConnectionListener

Open randomPoison opened this issue 8 years ago • 0 comments

Right now, connection listener tries to send messages without waiting for the send to complete. This results in messages not being sent when they should be. This is especially dangerous now that ConnectionListener acts as a broker between the server socket and the client socket, so dropping a packet means the communication between the two is delayed or lost.

We should do something to ensure that sends complete properly (though I'm not entirely sure what). We should reference UdpFramed to see how a type that is both Send and Sink should operate.

randomPoison avatar Nov 22 '17 02:11 randomPoison