users@grizzly.java.net

Re: [Q] how to determine selector's connected clients

From: Jeanfrancois Arcand <Jeanfrancois.Arcand_at_Sun.COM>
Date: Mon, 11 Feb 2008 16:14:20 -0500

Hi,

ALT Mobile DEV wrote:
> Hi,
>
>
> When using embedded Grizzly and Grizzlets, I would like to know are
> there any Comet/parked connections. Even though I am pushing content to
> Comet clients, I always get 0 for the following:
>
>
> aSelectorThread.getSelector(aRequest.getServerPort()).getKeepAliveCounter().size()
>
>
> aSelectorThread.getSelector(aRequest.getServerPort()).getKeepAliveStats().getCountConnections()


You should see those when getCountConnections() is invoked. Which
version are you using? I've fixed one issue last week:

https://grizzly.dev.java.net/issues/show_bug.cgi?id=46

Thanks!

-- Jeanfrancois



>
>
>
>
> What's the correct way to determine Comet connections from within a
> Grizzlet?
>
>
> thanks.
>
>
> --Zaid
>
> ALT Mobile
>
> http://altmobile.com/Home.html (web site)
> http://web.mac.com/altmobile/ (official blog)
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_grizzly.dev.java.net
> For additional commands, e-mail: users-help_at_grizzly.dev.java.net
>