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.

Can you please tell us as how can we achieve this functionality of socket "cycling" (i.e. close then reconnect) using MINA 0.8.1 API ?

Sounds like you're doing it the correct way, but you're encountering a bug.

Why do you have to cycle the server socket though?
-pete

--
[EMAIL PROTECTED] - http://fotap.org/~osi


Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to