Michael B. Allen
miallen at eskimo.com
Thu Nov 21 07:12:39 EST 2002
On Wed, 20 Nov 2002 11:46:47 +0100
"Specht, Uwe" <Uwe.Specht at est.fujitsu.com> wrote:
> I have to ethereal files as attachments. one is the windows file which just
> closes the pipe properly.
> For jcifs my file is much bigger as I have to open a connection do something
> and after doing nothing the connection is closed
> sorry that the files come so late but I had to find a windows test case to
> do this.
> I hope this helps.
There's only 3 frames in Winclient.pcap but I think I know
what the problem is. The TransactNamedPipeInputStream and
TransactNamedPipeOutputStream close() methods are empty! Put a
in them and try calling the pipe stream close() methods. I will test and
fix this in 0.6.8 and 0.7.0b9 too but it would be nice if you could try
it and send me another pcap like Jcifsclient.pcap.
> cu US
> -----Original Message-----
> From: Michael B. Allen [mailto:miallen at eskimo.com]
> Sent: Samstag, 16. November 2002 05:54
> To: Specht, Uwe
> Cc: jcifs at lists.samba.org
> Subject: Re: [jcifs] SmbNamedPipe
> On Fri, 15 Nov 2002 14:00:07 +0100
> "Specht, Uwe" <Uwe.Specht at est.fujitsu.com> wrote:
> > Hi,
> > is there any method to close a SmbNamedPipe.I already close the Input and
> > Output stream, but the connection is not closed properly. (compared to a
> > windows close of that pipe). I think there should be something like this
> > am I wrong?
> Well if you mean disconnect, no. There is no explicit way to
> disconnect. It will disconnect after jcifs.smb.client.soTimeout. If you
> mean that calling close() on the stream does not do the same thing as
> Windows then I'll have to take a packet capture. But that's not easy for
> me to do. If you have ethereal or netmon it will expedite the process
> quite a bit.
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