[jcifs] Re: jcifs.smb.Dfs bugs

Ronny Schuetz Usenet.r96 at gishpuppy.com
Mon Apr 28 14:32:58 GMT 2008


Hi Mike,

> Indeed.
> 
> Please try this package:
> 
>   http://jcifs.samba.org/src/1.2.20c.jar
>   http://jcifs.samba.org/src/1.2.20c.zip
>   http://jcifs.samba.org/src/1.2.20c.tgz
 >
> It has the thread-safe DFS cache changes and the getTrustedDomains
> lookup fix.
> 

Thanks a lot! Btw, the synchronization on Dfs#insert() is missing and in 
Dfs#getDc() is one more call to UniAddress.getByName(domain), that might 
need to be UniAddress.getByName(domain, true).

> Well you don't need to use a separate object. Just synchronize on
> SmbFile.dfs around the insert. See 1.2.20c code.

Right. Just wanted to minimize the time spent in the synchronized 
blocks, as Dfs#resolve() seems to perform a bunch of network calls.

Best regards,
Ronny



More information about the jcifs mailing list