[jcifs] deadlock while creating SmbFile
Michael B. Allen
miallen at eskimo.com
Sat Oct 12 05:51:46 EST 2002
On Fri, 11 Oct 2002 13:40:26 +0400
mamoNT <mamont at pisem.net> wrote:
> Hello Michael,
> Tuesday, September 24, 2002, 1:54:17 AM, you wrote:
> AMBR> A problem with session establishment to Win2K was identified. It's a bug in Win2K.
> AMBR> I'm not sure if I patched this in 0.7.0b3. Keep an eye out for 0.6.6. Or look through
> AMBR> the mailing list archives for the patch. I think I made that information available. In
> AMBR> fact there's a link in there to a jar that works. Try it.
> Nevertheless sometimes it hangs :((
> Not only on w2k but also at winXP
Well then that's not the problem. Check to make sure it's not a SYN
timeout. When a socket makes a connect to a server it sends a SYN packet.
If the server does not respond to this because of a firewall or the machine
was turned off the socket will get no response to this and it will take
serveral minutes before you get a "No route to host" message. IOW let it
hang there with -Dlog=ALL on and wait 10 minutes to make sure it's really
"hung". I am not aware of any deadlock in jCIFS and I have never seen such
a thing happen in at least the 0.6 series so I am very suspicious.
Otherwise, please write a minimal program that illustrates the problem and
get a -Dlog=ALL, a packet trace using Ethereal or Netmon or whatever. The
more information about where it's hanging the better. Also tell me about
your environment; what platform, what VM, etc.
Send any traces to me directly.
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