curl-users
Re: curl does not detect 'no space left on device' during scp
Date: Mon, 21 Jul 2014 10:36:01 +0200 (CEST)
On Fri, 18 Jul 2014, Priyanka Shah wrote:
> Thanks Daniel. Is there another way to find out whether the file was
> completely transferred or not?
Check its file size after the transfer?
> I tried using curl_easy_getinfo(), but looks like it returns bytes
> transferred, not bytes written on remote server.
That would have the same problem. If the server silently accepts all the data
we send to it, than that is implied to be a successful transfer. If the server
lied to us about that, then we've been lied to and will of course have the
wrong information.
If you truly want to fix this problem, I would recommend you first make sure
that my assumptions here have been correct - by building a test app with
libssh2 only and make sure it gets the same results with SCP. Then if this is
still correct, you'd check the server end and see what you can do to make sure
it doesn't "return success" when in fact it fails...
-- / daniel.haxx.se ------------------------------------------------------------------- List admin: http://cool.haxx.se/list/listinfo/curl-users FAQ: http://curl.haxx.se/docs/faq.html Etiquette: http://curl.haxx.se/mail/etiquette.htmlReceived on 2014-07-21