SCP 4096 bytes (General questions)
hi,
i'm trying to send a file that is bigger than 5000 bytes per SCP and the file on the remote system is always 4096 bytes long when the transfer is done... (i'm using vb.net and weonlydo 2.0.2.2)
any hints?
Magganpice
Re: SCP 4096 bytes
Magganpice,
I assume you use our samples. If you remove calls to SendEOF and Disconnect, does it work?
Kreso
Re: SCP 4096 bytes
i have commented the .SendEof() but the .Disconnect is still there, should i take that out? I can't see how that could solve the problem because that is only sent at the end....
Magganpice
Re: SCP 4096 bytes
It's because it disconnects too soon and data didn't leave your computer yet. This is known issue and we'll fix it, I'm just not sure how. Probably will add new event that declares all data as delivered.
Kreso
Re: SCP 4096 bytes
i have a for...next loop and send data 400 bytes at a time. at the end i send chr(13) & chr(0) and that's it, i've taken out .SendEof() and .Disconnect()... but the problem is the same. the transmitted file is 4096 bytes long...
Magganpice
Re: SCP 4096 bytes
Any other idea, that could help solving my problem?
Magganpice
Re: SCP 4096 bytes
other question:
what's the magic about file size 4096 bytes?
Magganpice
Re: SCP 4096 bytes
There's no magic in 4096 - this is probably packet size.
Do you declare wodSSH locally or globally? BTW do you use wodSSH.NET or ActiveX? Can you send me your code on techsupport@weonlydo.com
Thanks,
Kreso