Topic "Putfiles method hangs"

Author Message
bora.pradnya
[View user's profile]

Joined: 2012-04-05
Posts: 4
If network cable is removed in middle, when putfile method is transfering the large file then my application goes in hang state. Niether it throw an exception nor it goes timeout. Can you me solution for this ....how to come out from putfiles method ?

am attaching my code.

Thank you
Example.txt (29.08 KB) [Download]

Description: (none)

Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25015
Location: Prague, Czechia
Please set Session.SessionLogFile and Session.DebugLogFile and post or email me both logs.
_________________
Martin Prikryl
bora.pradnya
[View user's profile]

Joined: 2012-04-05
Posts: 4
prikryl wrote:
Please set Session.SessionLogFile and Session.DebugLogFile and post or email me both logs.



Thank for replying

hey sending both the log files.
session.log (28.72 KB) [Download]

Description: (none)

debug.log (115.51 KB) [Download]

Description: (none)

martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25015
Location: Prague, Czechia
I do not see any hang there, all done in 4 seconds. Can you explain in more details what do you experience?

[2012-05-04 15:49:08Z] [000a] Session.Open entering
...
[2012-05-04 15:49:11Z] [000a] Session.Open leaving
[2012-05-04 15:49:11Z] [000a] Session.FileExists entering
...
[2012-05-04 15:49:11Z] [000a] Session.FileExists leaving
[2012-05-04 15:49:11Z] [000a] Session.FileExists entering
...
[2012-05-04 15:49:11Z] [000a] Session.FileExists leaving
[2012-05-04 15:49:11Z] [000a] Session.PutFiles entering
...
[2012-05-04 15:49:11Z] [000a] Session.PutFiles leaving
[2012-05-04 15:50:02Z] [000a] Session.PutFiles entering
...
[2012-05-04 15:53:25Z] [000a] Session.PutFiles leaving
[2012-05-04 15:53:25Z] [000a] Session.FileExists entering
...
[2012-05-04 15:53:25Z] [000a] Session.FileExists leaving
[2012-05-04 15:53:25Z] [000a] Session.FileExists entering
...
[2012-05-04 15:53:25Z] [000a] Session.FileExists leaving
[2012-05-04 15:53:25Z] [000a] Session.FileExists entering
...
[2012-05-04 15:53:25Z] [000a] Session.FileExists leaving
_________________
Martin Prikryl
bora.pradnya
[View user's profile]

Joined: 2012-04-05
Posts: 4
If network cable is removed in middle, when putfiles method is transferring the file it doesn't come out from the method

//session.log

. 2012-05-04 15:50:14.625 Network error: Connection reset by peer
. 2012-05-04 15:50:14.625 Connection was lost, asking what to do.
. 2012-05-04 15:50:14.625 Asking user:
. 2012-05-04 15:50:14.625 Network error: Connection reset by peer. ()
< 2012-05-04 15:50:19.625 Script: Searching for host...
. 2012-05-04 15:50:19.625 Looking up host "192.168.0.4"
. 2012-05-04 15:50:19.625 Connecting to 192.168.0.4 port 22
. 2012-05-04 15:50:19.671 Failed to connect to 192.168.0.4: Network error: No route to host
. 2012-05-04 15:50:19.671 Connection was lost, asking what to do.
. 2012-05-04 15:50:19.671 Asking user:
. 2012-05-04 15:50:19.671 Network error: No route to host ()
< 2012-05-04 15:50:24.671 Script: Searching for host...
:
:
:
:
:
< 2012-05-04 15:52:49.718 Script: Searching for host...
. 2012-05-04 15:52:49.718 Looking up host "192.168.0.4"
. 2012-05-04 15:52:49.718 Connecting to 192.168.0.4 port 22
. 2012-05-04 15:52:49.718 Failed to connect to 192.168.0.4: Network error: No route to host
. 2012-05-04 15:52:49.718 Connection was lost, asking what to do.
. 2012-05-04 15:52:49.718 Asking user:
. 2012-05-04 15:52:49.718 Network error: No route to host ()
< 2012-05-04 15:52:54.718 Script: Searching for host...
. 2012-05-04 15:52:54.718 Looking up host "192.168.0.4"
. 2012-05-04 15:52:54.718 Connecting to 192.168.0.4 port 22
< 2012-05-04 15:52:54.718 Script: Connecting to host..

what to do in this case....?
bora.pradnya
[View user's profile]

Joined: 2012-04-05
Posts: 4
If n/w cable is removed ....my application still runs and wait for the n/w connection and doesn't exit

Hope you got my problem

Thanks
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25015
Location: Prague, Czechia
OK, I see. I'll check what I can do about it.
_________________
Martin Prikryl
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25015
Location: Prague, Czechia
This issue has been added to the tracker:
https://winscp.net/tracker/show_bug.cgi?id=860
_________________
Martin Prikryl
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25015
Location: Prague, Czechia
I'm sending you an email with a development version of WinSCP to address you have used to register on this forum.
_________________
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