[jcifs] Re: Question about SmbTransport.java, Performance improvement

Thomas Bley thomas.bley at simple-groupware.de
Mon Apr 10 10:48:35 GMT 2006


Yes I get name service query timeouts. My resolveOrder is lmhosts,dns.
But WinXP has no WINS server and I think in Samba, WINS is not enabled
by default, so do I always need it ?

Thanks and best regards,
Thomas

On 4/10/06, Michael B Allen <mba2000 at ioplex.com> wrote:
> On Mon, 10 Apr 2006 04:33:59 +0200
> Thomas Bley <thomas.bley at simple-groupware.de> wrote:
>
> > Hi Mike,
> >
> > In SmbTransport.java there is in doConnect():
> >         tconHostName = address.getHostName()
> >
> > I changed this to:
> >         tconHostName = address.getHostAddress();
> >
> > Now connecting is (very) much faster, and I can even use
> > smb://administrator:xxx@127.0.0.1/ as smb-url.
> > (I tested Samba, WinXP, w2k3 and w2k3 as ad-controller)
> >
> > Are there any reasons why I need getHostName() ? Do I need it for NetBios ?
>
> I'm not sure how important it is but we do as Windows does so it
> stays. As for it being faster I suspect you're just seeing name service
> query timeouts because you don't have WINS. You could solve that by just
> tweeking your resolveOrder.
>
> Mike
>


More information about the jcifs mailing list