Topic "Keep alive"

Author Message
t0r3x
[View user's profile]

Joined: 2012-03-24
Posts: 12
Location: Netherlands
After an X amount of time I seem to get disconnected from the server I am connected to. I want to be using some kind of keep alive like that is configurable in WinSCP itself. I have tried adding "/rawsettings PingType=2" (also tried PingType=1) to keep the connection alive, but I do not seem to have any effect when I look at the session log. When I try to list a directory after I seem to have been disconnected I get "Element "files" not found in the log file", which also seems to be a wrong response. What should work?

Code:
> 2012-08-21 23:21:45.620 Script: ls -- "/share/MD0_DATA/X250/"
. 2012-08-21 23:21:45.620 Listing current directory.
. 2012-08-21 23:21:45.620 Network error: Software caused connection abort


And from my own application I caught the following:

Code:
Event type: Error: 21-08-2012 23:21:53] WinSCPSession.GetDirectoryInfo: Element "files" not found in the log file
   at WinSCP.CustomLogReader.WaitForNonEmptyElement(String localName, LogReadFlags flags)
   at WinSCP.CustomLogReader.WaitForNonEmptyElementAndCreateLogReader(String localName, LogReadFlags flags)
   at WinSCP.Session.ListDirectory(String path)
   at I2ABS.WinSCP.WinSCPSession.GetDirectoryInfo(Object threadItem) in C:\Users\Marcel\documents\visual studio 2010\Projects\BackupTool\WinSCP\WinSCPSession.cs:line 250
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24530
Location: Prague, Czechia
The .NET assembly does not support keepalives yet

I have added the "Element "files" not found in the log file" error to the tracker:
http://winscp.net/tracker/show_bug.cgi?id=900
_________________
Martin Prikryl
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