[jcifs] SmbTransport.java

Michael B.Allen Michael_B_Allen at ml.com
Thu Apr 17 09:23:43 EST 2003


On Wed, 16 Apr 2003 15:42:40 -0400
"Dan Dumont" <Dan at canofsleep.com> wrote:

> On line 233:
> do {
>    try {
>        socket = new NbtSocket( naddr, calledName, port, localAddr, localPort
> );
>        break;
>    }  
>    catch( NbtException ne ) {
>             if( ne.errorClass == NbtException.ERR_SSN_SRVC &&
>                                 ( ne.errorCode ==
> NbtException.CALLED_NOT_PRESENT ||
>                                 ne.errorCode ==
> NbtException.NOT_LISTENING_CALLED )) {
>                         Log.println( Log.WARNINGS, "smb warning",
> ne.getMessage() );
>             }    
>             else {
>                throw ne;
>             }
>     }
> } while(( calledName = address.nextCalledName()) != null );
> 
> I am noticing that when a try certain hosts, it catches a NbtException and
> the error class is ERRSSN_SRVC && NOT_LISTING_CALLED  so, it matches the if,
> prints to the log, and trys again!!!!
>
> Why are you trying again if it's not listing on called name?!

Tries again with nextCalledName().

> This relates to my previous message.  The other threads are caught up in an
> aquire mid
> And this thread marches through this infinite loop.  Never releasing
> decrementing mpxCount.

It should after 1min 15seconds.

Mike



More information about the jcifs mailing list