On 5/1/06, peter royal <[EMAIL PROTECTED]> wrote:

On Apr 29, 2006, at 12:43 PM, Rajesh Bhatiya wrote:
> We are using MINA 0.8.1 API for reading and sending data over TCP
> socket layer. We want to "cycle" the server socket (i.e. close then
> reconnect) if it does not receive any packet for a period of 40
> seconds. To achieve this we are using unbind() and bind() methods
> of "SimpleServiceRegistry" class. But the program hangs during the
> unbind() operation.

Have you done a thread dump when the program is "hung"? 'kill -QUIT
<pid>' on unix-like systems. Check the java documentation on how to
do this on windows. This will help find the cause of the hang.


On Windows, you have to press 'CTRL+BREAK' (not 'CTRL+C').

Trustin
--
what we call human nature is actually human habit
--
http://gleamynode.net/
--
PGP key fingerprints:
* E167 E6AF E73A CBCE EE41  4A29 544D DE48 FE95 4E7E
* B693 628E 6047 4F8F CFA4  455E 1C62 A7DC 0255 ECA6

Reply via email to