[jcifs] Jcifs corrupted files after soTimeout
Michael B Allen
mba2000 at ioplex.com
Sun May 1 23:15:14 GMT 2005
Autexier, Jean-Marc said:
> When you start writing a file, wait longer than DEFAULT_SO_TIMEOUT and
> continue to write the file, the file will be corrupted.
The fix for this is to add the following at line 140 of SmbFileOutputStream:
this.openFlags &= ~(SmbFile.O_CREAT | SmbFile.O_TRUNC);
This is a serious bug but considering it's been there for pretty much
forever I think I can sit on it for a few days in case something else
comes up.
Thanks,
Mike
More information about the jcifs
mailing list