-
Notifications
You must be signed in to change notification settings - Fork 67
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
Laminar sometimes sends duplicated reliable messages #266
Comments
@TimonPost @jstnlef did you two look at this? |
@mvlabat my guess is that it's because the client never seems to read from the channel of incoming messages so it doesn't register them in the bitset of acknowledged messages to send back. If not, where can I find the API of |
@BourgondAries I think you were looking at stable documentation. You can find I believe that client does read from the channel of incoming messages.. I'm not very familiar with |
@fhaynes I did some time ago. There are some weird things happening in the reliability layer. It is a debugging hell. Since then I haven't looked at yet. You will have to make sure that you've completed the server-client handshake. Which is a client to server and server to client packet exchange. Then it should not sent any duplicates. In order to validate this issue, we need some sample code. I can't promise any time devotion now. Maybe later. |
Seems like I'm having this issue as well. |
Sometimes Laminar sends duplicated reliable messages.
Here's the code I tested reliable messages with:
https://github.com/mvlabat/laminar_test_reliable
It's built on
amethyst_net
(that's the simplest way I could make a working reproducible example).This is the log I've got for
server
binary:Note the first and the last lines ^ (the first message sent on 60'th frame was received twice).
I'm not sure this is 100% reproducible, but with some "luck" it is (I've got the same log two times in a row). I suppose the key to see it is to wait for at least
REDUNDANT_PACKET_ACKS_SIZE
(32) packets.The text was updated successfully, but these errors were encountered: