SCP 4096 bytes (General questions)

by Magganpice, (7539 days ago)

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

locked

Re: SCP 4096 bytes

by Jasmine, (7539 days ago) @ Magganpice

Magganpice,

I assume you use our samples. If you remove calls to SendEOF and Disconnect, does it work?

Kreso

locked

Re: SCP 4096 bytes

by Magganpice, (7539 days ago) @ Jasmine

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

locked

Re: SCP 4096 bytes

by Jasmine, (7539 days ago) @ Magganpice

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

locked

Re: SCP 4096 bytes

by Magganpice, (7539 days ago) @ Jasmine

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

locked

Re: SCP 4096 bytes

by Magganpice @, (7539 days ago) @ Magganpice

Any other idea, that could help solving my problem?

Magganpice

locked

Re: SCP 4096 bytes

by Magganpice @, (7539 days ago) @ Magganpice

other question:

what's the magic about file size 4096 bytes?

Magganpice

locked

Re: SCP 4096 bytes

by Jasmine, (7539 days ago) @ Magganpice

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

locked