Putfiles method hangs

Advertisement

bora.pradnya
Joined:
Posts:
4

Putfiles method hangs

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

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
27,226
Location:
Prague, Czechia

Re: Putfiles method hangs

Please set Session.SessionLogFile and Session.DebugLogFile and post or email me both logs.
_________________
Martin Prikryl

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
27,226
Location:
Prague, Czechia

Re: Putfiles method hangs

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

Reply with quote

bora.pradnya
Joined:
Posts:
4

Re: Putfiles method hangs

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....?

Reply with quote

bora.pradnya
Joined:
Posts:
4

Re: Putfiles method hangs

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

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
27,226
Location:
Prague, Czechia

Re: Putfiles method hangs

OK, I see. I'll check what I can do about it.
_________________
Martin Prikryl

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
27,226
Location:
Prague, Czechia

Re: Putfiles method hangs

I'm sending you an email with a development version of WinSCP to address you have used to register on this forum.
_________________
Martin Prikryl

Reply with quote

Advertisement

You can post new topics in this forum