mina-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mike Heath <mhe...@apache.org>
Subject Re: IoSocketConnector max connection
Date Fri, 12 Oct 2007 19:14:29 GMT
liquidchen wrote:
> So, if I just want to control the max connection number to the remote site,
> what will be the best solution to do this?? Use IoFilter to control it?? But
> I dont want to close new incoming connection if max connection number reach,
> I just want to block it to wait connection release for a while, thanks for
> any suggestion...

Could you just use java.util.concurrent.Semaphore?

-Mike

Mime
View raw message