views:

256

answers:

0

hello guys,

I have a firefox extension where for some reason(for the sake of functionality) i have to employ the use of a tcp server so that it can receive messages from my client application. I am using nsiServerSocketInterface to do it.

This works fine. But the problem, comes up when FF is running and i hibernate or put my m/c to sleep and then when i wake up, i notice that the Server Socket has been closed !!

I am not able to check from my extension code if the socket is still listening and is alive ..(trust me...could not find any way :( )...

I then tried to execute a small code which basically sent a message on the socket and if the socket is closed, an exception should ideally be raised, so that i can restart the listening socket. But, this is not full-proof.

So, if you guys havee any insights on the problem then do let me know.

Thank you,