[jcifs] Regarding file exist call stuck
Rina Patel
kotadiarina at gmail.com
Fri May 15 02:12:41 MDT 2015
Hi Mike
We are facing one issue in file exist check .
SmbFile file = new SmbFile("<repository-path>/test.txt");
if (!file.exists()) <--------- this call taking 4 MIN around time
{
}
If server is busy it should through timeout error ,but here it stuck for
long time.
One thing to tell you that this operation is in thread.So every thread (10
thread per second) checking same file .
Is this server response taking time or threads block somewhere inbetween ?
set socket timeout=15000 (15 sec)
response timeout=10000 (10 sec)
Thanks
--
Regards,
Rina
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.samba.org/pipermail/jcifs/attachments/20150515/177d4a0c/attachment.html>
More information about the jCIFS
mailing list