So I kept thinking about the problem we looked at today in IRC, and here are few things that occurred to me.
- The flag needs to be cleared in the finally block to ensure that it is accurate. Or else if the send() throws an exception, it can incorrectly raise an error when there actually is no lock re-entrance. http://pastebin.com/1CtSNpAX - If for some reason the sender raises an exception while writing to the stream, we can see a stream corruption without having the send() method re-entrance. So the detective work continues... -- Kohsuke Kawaguchi http://kohsuke.org/
