Problem with sockets in neko

44 views
Skip to first unread message

wurz...@googlemail.com

unread,
Feb 24, 2012, 5:21:17 AM2/24/12
to haxe...@googlegroups.com
Hi,
I'm having a problem with sockets:
When a socket got closed forcefull, the server doesn't notice it, so the socket stays alive.
This happens when you pull out your network plug for example. I tried to use the "other array" for sockets.select() but with no success.

Does somebody have an idea or solution?

Kind Regards.

Simon Krajewski

unread,
Feb 24, 2012, 5:24:41 AM2/24/12
to haxe...@googlegroups.com
Am 24.02.2012 11:21, schrieb wurz...@googlemail.com:
> Hi,
> I'm having a problem with sockets:
> When a socket got closed forcefull, the server doesn't notice it, so
> the socket stays alive.

I don't do too much socket programming, but that sounds rather normal.
It's why servers send pings to clients, so they can find out if the
client is still there. If that is not implemented in your used neko
server class, it should be easy implementable by yourself.

Simon

wurz...@googlemail.com

unread,
Mar 4, 2012, 8:22:42 PM3/4/12
to haxe...@googlegroups.com
Hi,
sorry for the delay. I forgot answering.

However thanks for the response. I've implemented a simple ping mechanism and it works quite well.

Regards.
Reply all
Reply to author
Forward
0 new messages