Re: Copy timeout
Michael B Allen <[email protected]> Wed, 15 Aug 2012 12:53:36 -0400
| Newsgroups | gmane.network.samba.java |
|---|---|
| Message-ID | <CAGMFw4jn5crzfHE2=1veF9yBrwT+3xUjSFzaMmZfyOzqwSkJYA@mail.gmail.com> |
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" <[email protected]> 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 > >