Discussion:
[jcifs] Regarding file exist call stuck
Rina Patel
2015-05-15 08:12:41 UTC
Permalink
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
Loading...