[jcifs] NbtSocket Bug

Michael B Allen mba2000 at ioplex.com
Sun Jun 8 11:53:18 EST 2003


If a server accepts the SMB_COM_NEGOTIATE request but does not
respond, the NbtSocket.connect() method will hang indefinately. I
believe this may have been reported before actually. Attached is a new
src/jcifs/netbios/NbtSocket.java that sets an the socket timeout to
jcifs.netbios.soTimeout which by default is 5000ms.

Eric,

If you have changes now is the time.

Mike

-- 
A  program should be written to model the concepts of the task it
performs rather than the physical world or a process because this
maximizes  the  potential  for it to be applied to tasks that are
conceptually  similar and, more important, to tasks that have not
yet been conceived. 




More information about the jcifs mailing list