Hi,<div><br></div><div>I've run into some trouble while trying to configure jCIFS to fail over on a WINS error. The configuration I'm using looks something like this:</div><div><br></div><div>  Config.setProperty( "jcifs.smb.client.domain", "DOMAIN" );</div>
<div>  Config.setProperty( "jcifs.netbios.wins", "123.123.123.123,234.234.234.234" );</div><div>  Config.setProperty( "jcifs.netbios.retryTimeout", "5000" );</div><div><br></div><div>
The first WINS server isn't behaving correctly and is sending back a response type of 0x0A with error code 0x03. However, the second server does work properly and responds appropriately to a Name Query.</div><div><br>
</div><div>What I'm seeing is that NameServiceClient contacts the first WINS server multiple times (until the timeout expires), but never actually contacts the second. The problem is with the handling of the "timeout" parameter in "send:" on line 252 (version 1.3.17), the parameter value is overwritten, which prevents subsequent requests to other WINS servers when the first one fails (due to the guard on line 240). When I save the original parameter value and restore the value of "timeout" for each iteration of the outer while loop, the second server is contacted as expected.</div>
<div><br></div><div>Is this expected behavior? If it is, what would be the best way of handling this situation?</div><div><br></div><div>Thanks in advance!</div><div><br></div><div>-Abraham</div>