[jcifs] Jcifs corrupted files after soTimeout
jm.autexier at syborg.de
Fri Apr 29 08:11:19 GMT 2005
SmbTransport set 15000ms as DEFAULT_SO_TIMEOUT for the socket.
When you start writing a file, wait longer than DEFAULT_SO_TIMEOUT and
continue to write the file, the file will be corrupted. The
InterruptedIOException is catched by SmbTransport and not notified to
You can reproduce it like this:
SmbFile smbFile2 = new
OutputStream out2 = new SmbFileOutputStream(smbFile2);
out2.flush(); // just to be sure
// wait 30 sec
The file contains: 0x00 0x00 0x00 0x00 0x00 0x00 0x68 0x65 0x6C 0x6F
Data's before the interupted exeption are wrong (they are correct in the
file before the exception happen).
More information about the jcifs