[jcifs] problem when use jcifs ntlm auth for http connection

dtung david.tung at polycom.com
Mon Jun 14 21:37:16 GMT 2004


I tried the example program: NtlmHttpClient.java, it works for me except when I 
tried the failure test case, it takes for a while ( ~15 sec) to retrun back to 
me and got the exception:

Caused by: java.net.ProtocolException: Server redirected too many  times (20)
	at sun.net.www.protocol.http.HttpURLConnection.getInputStream
	at sun.net.www.protocol.http.HttpURLConnection.getHeaderField
	at jcifs.http.NtlmHttpURLConnection.parseResponseCode
	at jcifs.http.NtlmHttpURLConnection.doConnect

I tried jcifs.smb.client.soTimeout to set to smaller number (2000) but it 
doesn't seem to work. I need the control to return back much faster when login 
failed, else, it will cause big issue in heavily loaded system


More information about the jcifs mailing list