SendBuf=0 Not Doing Its Job?

Advertisement

samr
Joined:
Posts:
4

SendBuf=0 Not Doing Its Job?

For some reason, the site I connect to doesn't work well with the "Optimize connection buffer size" enabled, and whenever I had that on while downloading files larger than a few megabytes, I'd get this error:
Server unexpectedly closed network connection.
Fortunately, I found how to turn it off and (in the GUI version at least) all my transfers are successful. On the contrary, in batch mode from a script file, even after setting -rawsettings SendBuf=0 appended to the open command, the connection will "unexpectedly close" on files larger than a few megabytes.

Does SendBuf=0 completely turn off the feature as the GUI checkbox does?

Thank you.

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
41,441
Location:
Prague, Czechia

Re: SendBuf=0 Not Doing Its Job?

Yes it does.

Please attach a full log file showing the problem (using the latest version of WinSCP).

To generate log file, use /log=path_to_log_file command-line argument. Submit the log with your post as an attachment. Note that passwords and passphrases not stored in the log. You may want to remove other data you consider sensitive though, such as host names, IP addresses, account names or file names (unless they are relevant to the problem). If you do not want to post the log publicly, you can mark the attachment as private.

Reply with quote

samr
Joined:
Posts:
4

I attached the log files and have reproduced the problem again. Thank you.
  • transfer_log_gui.log (17.32 KB, Private file)
Description: Transfer log using the GUI without the Optimize Connection Buffer Size option enabled.
  • transfer_log_CONSOLE.log (14.49 KB, Private file)
Description: Transfer log using the console with SendBuf=0 as an option. The file transfer fails immediately.

Reply with quote

Advertisement

RVidarte
Guest

WinSCPnet.dll is getting hang

Hey,

I'm trying to rename files in a SFTP and it works, but after a few files renamed, suddenly the below text is written in the log and the exception is never thrown.
. 2016-01-28 12:46:06.719 --------------------------------------------------------------------------
. 2016-01-28 12:46:06.719 Looking up host "sftp.cleanharbors.com"
. 2016-01-28 12:46:06.719 Connecting to 12.15.160.40 port 22
. 2016-01-28 12:46:06.938 Server unexpectedly closed network connection
. 2016-01-28 12:46:06.938 Knocking FTP port.
. 2016-01-28 12:46:07.079 FTP port opened, will suggest using FTP protocol.

I already set SendBuf=0 and SshSimple=0
I'm using C#
sessionOptions.AddRawSettings("SendBuf", "0");
sessionOptions.AddRawSettings("SshSimple", "0");

Any thoughts?

Thanks.

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
41,441
Location:
Prague, Czechia

Re: WinSCPnet.dll is getting hang

RVidarte wrote:

I'm trying to rename files in a SFTP and it works, but after a few files renamed, suddenly the below text is written in the log and the exception is never thrown.
. 2016-01-28 12:46:06.719 --------------------------------------------------------------------------
. 2016-01-28 12:46:06.719 Looking up host "sftp.cleanharbors.com"
. 2016-01-28 12:46:06.719 Connecting to 12.15.160.40 port 22
. 2016-01-28 12:46:06.938 Server unexpectedly closed network connection
. 2016-01-28 12:46:06.938 Knocking FTP port.
. 2016-01-28 12:46:07.079 FTP port opened, will suggest using FTP protocol.

I already set SendBuf=0 and SshSimple=0
I'm using C#
sessionOptions.AddRawSettings("SendBuf", "0");
sessionOptions.AddRawSettings("SshSimple", "0");
That piece of log is hardly related to file renaming.
Please start a new thread and attach a complete log. The options SendBuf and SshSimple are absolutely not related to this problem either.

Reply with quote

Guest

Hello,

I have the same problem.
-rawsettings SendBuf=0 SshSimple=0 don't help

Interesting is that after many attempts finally the file is uploaded successfully.
Please see log file.
  • eos.log (206.9 KB, Private file)
Description: Transfer log using the console with SendBuf=0 SshSimple=0 as an option

Reply with quote

Advertisement

You can post new topics in this forum