Topic "Turn off Optimize connection buffer size"

Author Message
kdejarnet
[View user's profile]

Joined: 2013-07-01
Posts: 3
Location: Austin, TX
Is there a way to do this in the script? I tried using "option optimize connection buffer size off" but this is throwing an error.

Thanks.
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24530
Location: Prague, Czechia
See http://winscp.net/eng/docs/rawsettings
_________________
Martin Prikryl
kdejarnet
[View user's profile]

Joined: 2013-07-01
Posts: 3
Location: Austin, TX
Awesome. Thanks.
kdejarnet
[View user's profile]

Joined: 2013-07-01
Posts: 3
Location: Austin, TX


I've been trying to get this to work in a SSIS 2005 Execute Process Task but keep getting the message "Unknown command -rawsettings"

I'm using it as the first line of my script like so: -rawsettings SendBuf=0

Is there a different way I should be using this?

Thanks,

Keith
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24530
Location: Prague, Czechia
The -rawsettings is not a command, but a switch to open command:
http://winscp.net/eng/docs/scriptcommand_open

I've added an example:
http://winscp.net/eng/docs/rawsettings#example
sugaz007

Guest


I have this below statement in ssis script task which calls winscp and passes below command

open sftp://<<User Name>>:<<Password>>@<<Domain>>:21 -rawsettings SendBuf=0 -hostkey="<<hostkey>>"

Host is not communicating for more than 15 seconds. Still waiting...
Note: If the problem repeats, try turning off 'optimize connection buffer size'

Please help
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24530
Location: Prague, Czechia
sugaz007 wrote:
I have this below statement in ssis script task which calls winscp and passes below command

open sftp://<<User Name>>:<<Password>>@<<Domain>>:21 -rawsettings SendBuf=0 -hostkey="<<hostkey>>"

Host is not communicating for more than 15 seconds. Still waiting...
Note: If the problem repeats, try turning off 'optimize connection buffer size'

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 may email it to me. You will find my address (if you log in) in my forum profile. Please include link back to this topic in your email. Also note in this topic that you have emailed the log.

_________________
Martin Prikryl
samr
[View user's profile]

Joined: 2015-08-17
Posts: 4
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.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24530
Location: Prague, Czechia
samr wrote:
Does SendBuf=0 completely turn off the feature as the GUI checkbox does?

Duplicate post:
http://winscp.net/forum/viewtopic.php?t=15777
SimonBu

Guest


Hi prikryl,

I have the same problem... but in my case turning off the SendBuf and SSHSimple doesn´t work ;-(

I have attached my Log File ...


Thanks for your Support


Simon
log.txt (10.5 KB) Private file

Description: (none)

martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24530
Location: Prague, Czechia
SimonBu wrote:
I have the same problem... but in my case turning off the SendBuf and SSHSimple doesn´t work ;-(

I have attached my Log File ...

Please attach a complete log file.
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License