[jcifs] jTDS + jCIFS works!
David D. Kilzer
ddkilzer at kilzer.net
Thu Jul 22 14:00:48 GMT 2004
On Thu, Jul 22, 2004 at 05:49:41AM -0400, Eric Glass wrote:
> As Mike indicated, SMB transactions have a timeout field which you
> could play with; the ideal approach would be to employ TDS protocol
> support for this (if there is any).
Let's assume (for the sake of argument and because I'm not familiar with
the protocol) that TDS requires the client to be responsible for
handling timeouts. This is what the current jTDS TCP/IP implementation
does. When it receives an InterruptedIOException after setting the
socket timeout, it immediately creates a "cancel" packet and sends it to
Would it be less kludgy (dare I say "cleaner"?) to implement a timeout
mechanism in jTDS to do the query timeout? I don't relish the thought
of reviewing code to make sure that killing a thread in the middle of
execution won't leave any objects in a bad state.
Are there other, better ways of doing this?
More information about the jcifs