[jcifs] Disconnect from a share
Michael B Allen
mba2000 at ioplex.com
Fri Aug 19 21:01:47 GMT 2005
On Fri, 12 Aug 2005 16:21:22 -0400
Michael B Allen <mba2000 at ioplex.com> wrote:
> > 2) The Java VM sends a TCP RST package when you close the socket, smbclient
> > sends a TCP FIN package.
> > I found a description of the problem here:
> > http://java.sun.com/security/javaone/2003/2240-Networking.pdf
> > Solution: In SMBTransport.doDisconnect(..) add:
> > socket.shutdownOutput();
> > above of ->
> > out.close();
> > in.close();
>
> Interesting! I never noticed this. I would prefer to send a FIN. I'll
> add this to The List.
I've added this shutdownOutput although I can't see that it's made a
difference because I couldn't reproduce the RSTs in the first place. I'd
be curious to know if 1.2.2 makes a difference for you.
Mike
More information about the jcifs
mailing list