Hi Daniel,
> Which libcurl version on which platform is this?
[Vaibhav] Libcurl version 7.58 Used on Embedded Linux platform on ar758x board.
> libcurl will not reconnect nor resume anything on error. It should return an
> error.
[Vaibhav] Yes. If there is disconnection with file server (due to any reason),
I was expecting error return so that application can restart file transfer.
e.g. In this function callback "writeCallback", error return was expected.
curl_easy_setopt(
l_easy, CURLOPT_WRITEFUNCTION, (curl_write_callback)[](auto a_data,
auto, auto a_size, auto a_client) {
return CURL_CLIENT(a_client)->writeCallback(a_data, a_size);
});
curl_easy_setopt(l_easy, CURLOPT_WRITEDATA, this);
> Is this an upload or a download? Exactly how is that "FTP disconnection" done?
> Can you provide a small stand-alone example program that reproduces the
> problem?
[Vaibhav] This is download. I will provide small code writeup.
Regards,
Vaibhav
-----Original Message-----
From: Daniel Stenberg <[email protected]>
Sent: Tuesday, 24 August, 2021 20:57
To: vaibhav.taksale--- via curl-library <[email protected]>
Cc: Taksale Vaibhav (M) <[email protected]>
Subject: Re: Connection to file server disconnected while file transfer is in
progress
On Tue, 24 Aug 2021, vaibhav.taksale--- via curl-library wrote:
> Connection to file server disconnected while file transfer is in
> progress CURL does not get this disconnection response and will
> continue to wait for file transfer.
That's a bug then. Either in your code or in libcurl.
Which libcurl version on which platform is this?
> Thus, CURL is not attempting reconnection to resume file transfer.
libcurl will not reconnect nor resume anything on error. It should return an
error.
> Steps: successful connection to file server (filezilla) with valid
> credentials File transfer started possible FTP disconnection and file
> transfer is aborted.
Is this an upload or a download? Exactly how is that "FTP disconnection" done?
Can you provide a small stand-alone example program that reproduces the problem?
--
/ daniel.haxx.se
| Commercial curl support up to 24x7 is available!
| Private help, bug fixes, support, ports, new features
| https://curl.se/support.html
-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette: https://curl.se/mail/etiquette.html