dev@grizzly.java.net

Re: A question about outbound connection cache

From: Minoru Nitta <minoru.nitta_at_jp.fujitsu.com>
Date: Thu, 26 Feb 2009 15:03:29 +0900

Hi Alexey, again.


> Hi Minoru,
> >
> > I tested with grizzly-framework-1.9.6-20090223.215705-46.jar and
> > grizzly-utils-1.9.6-20090223.215705-47.jar. It worked !! Thank you.
> >
> > CacheableConnectorHandler implementation is different from 1.9.5.
> > I have not examined the code, but I guessed that's the reason.
> Yes, you're right. I've changed it a bit to avoid problems with Map,
> which you mentioned.
>
> Thanks.


Then, this time, I have a question about
OutboundConnectionCacheBlockingImpl.close method.

                :
                :
       try {
            conn.close() ;
       } catch (IOException exc) {
           if (debug())
               dprint( ".close: " + conn + ": Caught IOException on close:"
                       + exc ) ;
       }
       
       /* FIX --> */
       if (cs.entry.totalConnections() == 0){
           ContactInfo cinfo = cs.cinfo;
           entryMap.remove(cinfo);
       }

Above code is needed?


Minoru

> WBR,
> Alexey.
>