Re: Error Receiving a File SCP

2012-06-02 Thread Daniel Stenberg
On Thu, 31 May 2012, Barry Fawthrop wrote: I have but it's beyond my limited understanding of ssh2 to know what the recv function is hanging recv() should only ever be able to hang in blocking mode, so if you really want it to really never hang then use non-blocking. To figure out why it

Re: Error Receiving a File SCP

2012-05-31 Thread Barry Fawthrop
On 05/31/2012 01:57 AM, Daniel Stenberg wrote: On Wed, 30 May 2012, Barry Fawthrop wrote: Can anyone please shed some light on what can be done next. I really need to get this working Run it with a debugger and figure out why it hangs? Thanks I have but it's beyond my limited understanding

Re: Error Receiving a File SCP

2012-05-30 Thread Daniel Stenberg
On Wed, 30 May 2012, Barry Fawthrop wrote: Can anyone please shed some light on what can be done next. I really need to get this working Run it with a debugger and figure out why it hangs? -- / daniel.haxx.se ___ libssh2-devel http://cool.haxx.se/

Re: Error Receiving a File SCP

2012-05-30 Thread Barry Fawthrop
Can anyone please shed some light on what can be done next. I really need to get this working Thanks in advance On May 27, 2012, at 1:57 PM, Barry Fawthrop wrote: > Thanks > > :: [libssh2] 1.048000 SCP: Opening channel for SCP receive > :: [libssh2] 1.048000 Conn: Allocated new channel ID

Re: Error Receiving a File SCP

2012-05-27 Thread Barry Fawthrop
Thanks :: [libssh2] 1.048000 SCP: Opening channel for SCP receive :: [libssh2] 1.048000 Conn: Allocated new channel ID#0 :: [libssh2] 1.048000 Conn: Opening Channel - win 262144 pack 32768 => libssh2_transport_write plain (24 bytes) : 5A 00 00 00 07 73 65 73 73 69 6F 6E 00 00 00 00 : Z

Re: Error Receiving a File SCP

2012-05-27 Thread Peter Stuge
Barry Fawthrop wrote: > Thanks Daniel > > my code does not run in either blocking or non-blocking mode > hangs stops and goes no further It would be helpful if you sent a debug trace with only libssh2 output and nothing else. Build libssh2 with debug enabled, and call libssh2_trace(session, ~0

Re: Error Receiving a File SCP

2012-05-27 Thread Barry Fawthrop
Thanks Daniel my code does not run in either blocking or non-blocking mode hangs stops and goes no further I showed a debug trace of both the libssh2 scp.c code running fine and I have the exact code but within the Marmalade SDK (so I can create iOS and Android apps) It stops in the recv

Re: Error Receiving a File SCP

2012-05-27 Thread Daniel Stenberg
On Sun, 27 May 2012, Barry Fawthrop wrote: Any light on what will cause recv to hang up ? Hang or hang up? Did your code run in blocking or non-blocking mode? Which libssh2 version on what operating system? Also interested to know what triggers the Failure Event -37 and causes it to loop

Re: Error Receiving a File SCP

2012-05-27 Thread Barry Fawthrop
Any light on what will cause recv to hang up ? Also interested to know what triggers the Failure Event -37 and causes it to loop back ? I need to try to create this loop around Thanks in advance On May 23, 2012, at 8:09 AM, Barry Fawthrop wrote: > I am able to connect But Unable to re

Error Receiving a File SCP

2012-05-23 Thread Barry Fawthrop
I am able to connect But Unable to receive a File Using the same code as example/scp.c (tried even the scp_nonblock.c) Trace taken from the working example/scp.c Read B lines come from my trace additions to transport.c _libssh2_transport_readFunction Read B 2 just befo