oskarnie14 / lidgren-network-gen3

Automatically exported from code.google.com/p/lidgren-network-gen3
0 stars 0 forks source link

Disconnect regulary sent before previous messages delivered #177

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Connect to a peer
2. Send a message
3. On the next line after SendMessage(), Disconnect() from peer.

What is the expected output? What do you see instead?
In feature list update you say that send queue is now flushed before disconnect,
but ** in 40% ** of times it does not - peer receives disconnect status 
message, and message(s) sent before disconnect is not delivered. 

What version of the product are you using? On what operating system?
Latest lib from SVN, peer 1: .net 3.5 (mono), peer 2: .net 4.5.1

Please provide any additional information below.
I tried many ways, adding hundred of SendMessage() before and after 
SendMessage() i really need to deliver before disconnect. I am really in 
trouble and waiting for at least comment how to fix it myself, if there is a 
good solution in your source.

Original issue reported on code.google.com by shevchy...@gmail.com on 19 Nov 2014 at 7:06

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
I was unable to repro this myself; a quick (albeit local only) server/client 
managed to send the message before disconnect every time. However, I checked in 
a potential fix in rev 390, try it out and tell me if it helps.

Original comment by lidg...@gmail.com on 20 Nov 2014 at 10:27

GoogleCodeExporter commented 9 years ago
This fix does not solves problem. i send message with 
ReliableOrdered/ReliableSequenced method, on localhost. Ill keep debugging and 
thinking tomorrow but i am very confused.

Original comment by shevchy...@gmail.com on 20 Nov 2014 at 10:53