Post a reply

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

martin

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

Re: Putfiles method hangs

OK, I see. I'll check what I can do about it.
bora.pradnya

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
bora.pradnya

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

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
bora.pradnya

Re: Putfiles method hangs

martin wrote:

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



Thank for replying

hey sending both the log files.
martin

Re: Putfiles method hangs

Please set Session.SessionLogFile and Session.DebugLogFile and post or email me both logs.
bora.pradnya

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