users@grizzly.java.net

Re: suitability for writing UDP servers

From: Radim Kolar SF.NET <hsn_at_sendmail.cz>
Date: Thu, 25 Oct 2007 18:52:49 +0200

> Because in UDP case, it closes socket but Controller select
>> loop is still running, so result is that nobody can connect to it anymore.
>> While it can be good design decision to close client sockets after 30
>> seconds,
>> it should not close server socket.
> I don't think it close the server socket, does it? This is a serious bug if
> it does that :-)
yes it does. create udp server then send 1 udp packet to it, wait 30 seconds and it will close server socket. without sending any packets to server socket is not closed.

You should check same case against TCP server too, i didn't checked it. it
will be most likely fine because ppl will already complain about it.