Regarding file exist call stuck

Rina Patel <[email protected]> Fri, 15 May 2015 13:42:41 +0530
Newsgroups gmane.network.samba.java
Message-ID <CAO9eQi8=1jMswGo+6=rkLUtVbxAVVh5pAhGDnmbLNKYEwg2VJA@mail.gmail.com>
--001a113e4e6a7feba805161a6844
Content-Type: text/plain; charset=UTF-8

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

--001a113e4e6a7feba805161a6844
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div><div>Hi Mike<br></div>We are facing one issue in file=
 exist check .<br><br>SmbFile file =3D new SmbFile(&quot;&lt;repository-pat=
h&gt;/test.txt&quot;);<br><br>if (!file.exists())=C2=A0=C2=A0 &lt;---------=
 this call taking 4 MIN around time <br>{<br>}<br><br></div><div>If server =
is busy it should through timeout error ,but here it stuck for long time.<b=
r></div><div>One thing to tell you that this operation is in thread.So ever=
y thread (10 thread per second)=C2=A0 checking same file .<br><br></div><di=
v>Is this server response taking time=C2=A0 or threads block somewhere inbe=
tween ?<br></div><div><br></div><div>set <span style=3D"color:rgb(74,74,74)=
;font-family:Arial,Helvetica,sans-serif;font-size:13px;font-style:normal;fo=
nt-variant:normal;font-weight:normal;letter-spacing:normal;line-height:norm=
al;text-align:start;text-indent:0px;text-transform:none;white-space:normal;=
word-spacing:0px;display:inline!important;float:none;background-color:rgb(2=
55,255,255)">socket timeout=3D15000 (15 sec)<br></span></div><div><span sty=
le=3D"color:rgb(74,74,74);font-family:Arial,Helvetica,sans-serif;font-size:=
13px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacin=
g:normal;line-height:normal;text-align:start;text-indent:0px;text-transform=
:none;white-space:normal;word-spacing:0px;display:inline!important;float:no=
ne;background-color:rgb(255,255,255)">response timeout=3D10000 (10 sec)<br>=
</span></div><div><br></div><div>Thanks<br clear=3D"all"></div><div><div><d=
iv><br>-- <br><div class=3D"gmail_signature"><div>Regards,</div><div>Rina</=
div></div>
</div></div></div></div>

--001a113e4e6a7feba805161a6844--