SCP 4096 bytes - WeOnlyDo Discussion board

SCP 4096 bytes (General questions)

by Magganpice, Thursday, September 09, 2004, 15:53 (7379 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

Re: SCP 4096 bytes

by wodSupport, Thursday, September 09, 2004, 16:02 (7378 days ago) @ Magganpice

Magganpice,

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

Kreso

Re: SCP 4096 bytes

by Magganpice, Thursday, September 09, 2004, 16:09 (7378 days ago) @ wodSupport

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

by wodSupport, Thursday, September 09, 2004, 16:12 (7378 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

Re: SCP 4096 bytes

by Magganpice, Thursday, September 09, 2004, 16:21 (7378 days ago) @ wodSupport

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

by Magganpice, Thursday, September 09, 2004, 16:41 (7378 days ago) @ Magganpice

Any other idea, that could help solving my problem?

Magganpice

Re: SCP 4096 bytes

by Magganpice, Thursday, September 09, 2004, 17:11 (7378 days ago) @ Magganpice

other question:

what's the magic about file size 4096 bytes?

Magganpice

Re: SCP 4096 bytes

by wodSupport, Thursday, September 09, 2004, 19:12 (7378 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