[jcifs] Copy timeout

Michael B Allen ioplex at gmail.com
Wed Aug 15 10:53:36 MDT 2012


Hi Jerwine,

I think you want jcifs.smb.client.timeout and not jcifs.netbios.timeout.
See the Setting Client Properties page.

Mike
On Aug 14, 2012 3:20 AM, "Jerwine Clark Badiang" <jbadiang at ntsp.nec.co.jp>
wrote:

> Hi,
>
> Good afternoon.
>
> I have been using jcifs library to copy files to/from SAMBA shares.
> However I encounter this problem:
>
> When copying file from the SAMBA share, the network has been disconnected
> for 45 seconds then established connection again, but it result to this
> exception,
> 2012-08-06 16:46:18:961,ERROR,**Communicator,**createRefDirFromSmb,"jcifs.
> **util.transport.**TransportException: Transport1 timedout waiting for
> response to SmbComReadAndX[command=SMB_**COM_READ_ANDX,received=false,**
> errorCode=0,flags=0x0018,**flags2=0xC803,signSeq=0,tid=**
> 2048,pid=19285,uid=2048,mid=**987,wordCount=12,byteCount=0,**
> andxCommand=0xFF,andxOffset=0,**fid=9,offset=57344,maxCount=**
> 4286,minCount=4286,**openTimeout=-1,remaining=0,**offset=57344]
>
> even though I have the following settings:
>
> -Djcifs.smb.client.**responseTimeout=1200000
> -Djcifs.netbios.soTimeout=**1200000
>
> Is my setting correct?
> What possible settings may need to be added in order to continue copying
> even though the network connection has been unavailable for 45 seconds?
>
> Thank you very much.
>
> Best regards,
> Jerwine
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.samba.org/pipermail/jcifs/attachments/20120815/3e8def4f/attachment.html>


More information about the jCIFS mailing list