Dvergar / Anette

Simple haxe network library
Do What The F*ck You Want To Public License
38 stars 2 forks source link

Disconnection halts apps #3

Open f-rank opened 9 years ago

f-rank commented 9 years ago

Hi, I have one server and one client talking to each other and trading data, whenever I close one app it boink halts and the other does the same. (these are two Windows apps) Is there a recommended clean way to exit ? Does it happen because one is sending/receiving and suddenly it halts because of non completion. Can I listen for some event so this doesn't happen ?

Thank you Frank

Ohmnivore commented 9 years ago

same issue here

Ohmnivore commented 9 years ago

(happens on timeout)

f-rank commented 9 years ago

Hi Ohmnivore. The provided server/slient example works ok because there is nothing else going on. So I used it in an app that displays scoreboard infor and communicates with the input app through Anette. I tried to halt sending and receiving before disconnecting so that it didn't push data while disconnecting. But still no luck. I don't know if the dev is around but if you happen to come across a fix for this, please do share.

Ohmnivore commented 9 years ago

hehe i'll be debugging this for a few hours today, i'll report back soon

Dvergar commented 9 years ago

Sorry, I've been busy, will investigate it today!

Dvergar commented 9 years ago

Ok it gets stuck in the buffer loop server-side when there's a disconnection, will try to fix it soon.

f-rank commented 9 years ago

Thanks for looking at the problem folks.