mina-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Niklas Therning <nik...@trillian.se>
Subject Re: Halt?
Date Fri, 09 Jun 2006 09:09:10 GMT
Kaj Bjurman wrote:
> ..
> 
> 
> I would not like to halt the server. That is, the server should reject
> new connections, but existing connections/sessions should still be
> valid.
> 
> How is that done? I would simply stop calling accept if I were using
> plain sockets.

I can think of two solutions: You could unbind() the service or you 
could implement a filter which immediately closes new sessions. Just add 
the filter to the filter chain when you want to prevent new connections. 
I guess unbind() will be closer to what you would do with plain sockets.

HTH

/Niklas

Mime
View raw message