curl / Mailing Lists / curl-library / Single Mail
Buy commercial curl support from WolfSSL. We help you work out your issues, debug your libcurl applications, use the API, port to new platforms, add new features and more. With a team lead by the curl founder himself.

Re: Potential hang problem on paused upload transfer when it is marked for closing

From: Daniel Stenberg via curl-library <>
Date: Wed, 29 Nov 2023 10:16:22 +0100 (CET)

On Tue, 28 Nov 2023, Dmitry Karpov via curl-library wrote:

> It looks like clearing just the KEEP_SEND in the "keepon" flags wasn't
> enough to unpause and finish the transfer. I am wondering if the
> KEEP_SEND_PAUSE flag should be also cleared in this case?


> It worked out in my case, but maybe there are some other implications which
> I don't see with this solution.

I can't think of a situation where keeping the pause bit can actually serve a
purpose when the upload itself is already done. I think this seems like a
reasonable fix. Especially since it fixes your problem.

Will you make a PR for it?

  | Commercial curl support up to 24x7 is available!
  | Private help, bug fixes, support, ports, new features
Received on 2023-11-29