[curl/curl] 711879: tool_operate: don't discard failed parallel transf...

Jay Satiro <[email protected]>
Newsgroups gmane.comp.web.curl.cvs
Message-ID <curl/curl/push/refs/heads/master/[email protected]>
  Branch: refs/heads/master
  Home:   https://github.com/curl/curl
  Commit: 711879ca7cbda86c391c2b4dfb4b39847f773dc5
      https://github.com/curl/curl/commit/711879ca7cbda86c391c2b4dfb4b39847f773dc5
  Author: Jay Satiro <[email protected]>
  Date:   2021-04-20 (Tue, 20 Apr 2021)

  Changed paths:
    M src/tool_operate.c

  Log Message:
  -----------
  tool_operate: don't discard failed parallel transfer result

- Save a parallel transfer's result code only when it fails and the
  transfer is not being retried.

Prior to this change the result code was always set which meant that a
failed result could be erroneously discarded if a different transfer
later had a successful result (CURLE_OK).

Before:

> curl --fail -Z https://httpbin.org/status/404 https://httpbin.org/delay/10
> echo %ERRORLEVEL%
0

After:

> curl --fail -Z https://httpbin.org/status/404 https://httpbin.org/delay/10
> echo %ERRORLEVEL%
22

Closes #xxxx


_______________________________________________
curl-commits mailing list
[email protected]
https://cool.haxx.se/cgi-bin/mailman/listinfo/curl-commits
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.