curl-curl/src
Marc Hoersken 8b42d7b9d4
tool and tests: force flush of all buffers at end of program
On Windows data can be lost in buffers in case of abnormal program
termination, especially in process chains as seen due to flaky tests.
Therefore flushing all buffers manually should avoid this data loss.

In the curl tool we play the safe game by only flushing write buffers,
but in the testsuite where we manage all buffers, we flush everything.

This should drastically reduce Windows CI and testsuite flakiness.

Reviewed-by: Daniel Stenberg

Supersedes #7833 and #6064
Closes #8516
2022-03-13 13:29:28 +01:00
..
macos
.gitignore
CMakeLists.txt copyright: update copyright year ranges to 2021 2021-05-26 08:18:11 +02:00
curl.rc copyright: fix year ranges 2020-11-05 08:22:10 +01:00
Makefile.am netware: remove support 2022-01-31 13:40:26 +01:00
makefile.amiga curl.se: new home 2020-11-04 23:59:47 +01:00
makefile.dj copyright: fix missing year (range) updates 2021-01-29 14:35:13 +01:00
Makefile.inc lib: remove support for CURL_DOES_CONVERSIONS 2022-02-04 08:05:35 +01:00
Makefile.m32 Makefile.m32: rename -winssl option to -schannel and tidy up 2021-11-25 17:36:38 +00:00
mkhelp.pl copyright: fix year ranges 2020-11-05 08:22:10 +01:00
slist_wc.c copyright: fix year ranges 2020-11-05 08:22:10 +01:00
slist_wc.h copyright: fix year ranges 2020-11-05 08:22:10 +01:00
tool_binmode.c copyright: fix year ranges 2020-11-05 08:22:10 +01:00
tool_binmode.h copyright: fix year ranges 2020-11-05 08:22:10 +01:00
tool_bname.c copyright: fix year ranges 2020-11-05 08:22:10 +01:00
tool_bname.h copyright: fix year ranges 2020-11-05 08:22:10 +01:00
tool_cb_dbg.c lib: remove support for CURL_DOES_CONVERSIONS 2022-02-04 08:05:35 +01:00
tool_cb_dbg.h copyright: fix year ranges 2020-11-05 08:22:10 +01:00
tool_cb_hdr.c tool_cb_hdr: Turn the Location: into a terminal hyperlink 2022-03-11 17:25:35 -08:00
tool_cb_hdr.h copyright: fix year ranges 2020-11-05 08:22:10 +01:00
tool_cb_prg.c tool_cb_prg: make resumed upload progress bar show better 2021-09-27 23:17:44 +02:00
tool_cb_prg.h copyright: fix year ranges 2020-11-05 08:22:10 +01:00
tool_cb_rea.c docs/examples: adjust prototypes for CURLOPT_READFUNCTION 2020-12-30 22:20:24 +01:00
tool_cb_rea.h docs/examples: adjust prototypes for CURLOPT_READFUNCTION 2020-12-30 22:20:24 +01:00
tool_cb_see.c [PellesC] fix _lseeki64() macro 2021-07-16 07:32:06 +02:00
tool_cb_see.h curl.se: new home 2020-11-04 23:59:47 +01:00
tool_cb_wrt.c curl: add --no-clobber 2022-03-11 08:38:01 +01:00
tool_cb_wrt.h curl.se: new home 2020-11-04 23:59:47 +01:00
tool_cfgable.c curl: add --no-clobber 2022-03-11 08:38:01 +01:00
tool_cfgable.h curl: add --no-clobber 2022-03-11 08:38:01 +01:00
tool_dirhie.c checksrc: detect more kinds of NULL comparisons we avoid 2021-12-27 23:39:26 +01:00
tool_dirhie.h copyright: fix year ranges 2020-11-05 08:22:10 +01:00
tool_doswin.c version_win32: Check build number and platform id 2021-12-02 03:39:14 -05:00
tool_doswin.h curl.se: new home 2020-11-04 23:59:47 +01:00
tool_easysrc.c misc: update copyright years 2021-10-15 17:07:19 +02:00
tool_easysrc.h copyright: fix year ranges 2020-11-05 08:22:10 +01:00
tool_filetime.c Revert "src/tool_filetime: disable -Wformat on mingw for this file" 2021-11-03 08:44:41 +01:00
tool_filetime.h curl: move fprintf outputs to warnf 2021-01-27 08:45:02 +01:00
tool_findfile.c tool_findfile: free mem properly 2022-01-07 16:39:19 +01:00
tool_findfile.h tool_findfile: check ~/.config/curlrc too 2022-01-07 10:10:49 +01:00
tool_formparse.c lib: remove support for CURL_DOES_CONVERSIONS 2022-02-04 08:05:35 +01:00
tool_formparse.h curl.se: new home 2020-11-04 23:59:47 +01:00
tool_getparam.c curl: add --no-clobber 2022-03-11 08:38:01 +01:00
tool_getparam.h parse_args: redo the warnings for --remote-header-name combos 2021-09-10 17:02:21 +02:00
tool_getpass.c curl.se: new home 2020-11-04 23:59:47 +01:00
tool_getpass.h copyright: fix year ranges 2020-11-05 08:22:10 +01:00
tool_help.c curl: add --no-clobber 2022-03-11 08:38:01 +01:00
tool_help.h tool_listhelp: easier to generate with gen.pl 2021-09-30 17:50:48 +02:00
tool_helpers.c curl: improve error message for --head with -J 2021-11-23 08:43:44 +01:00
tool_helpers.h copyright: fix year ranges 2020-11-05 08:22:10 +01:00
tool_hugehelp.c.cvs curl.se: new home 2020-11-04 23:59:47 +01:00
tool_hugehelp.h copyright: fix year ranges 2020-11-05 08:22:10 +01:00
tool_libinfo.c tool_operate: only set SSH related libcurl options for SSH URLs 2021-11-21 23:12:48 +01:00
tool_libinfo.h tool_operate: only set SSH related libcurl options for SSH URLs 2021-11-21 23:12:48 +01:00
tool_listhelp.c curl: add --no-clobber 2022-03-11 08:38:01 +01:00
tool_main.c tool and tests: force flush of all buffers at end of program 2022-03-13 13:29:28 +01:00
tool_main.h copyright: fix year ranges 2020-11-05 08:22:10 +01:00
tool_msgs.c copyright: fix year ranges 2020-11-05 08:22:10 +01:00
tool_msgs.h copyright: fix year ranges 2020-11-05 08:22:10 +01:00
tool_operate.c curl: add --remove-on-error 2022-03-10 19:57:55 +01:00
tool_operate.h curl: remove "separators" (when using globbed URLs) 2022-01-15 23:41:28 +01:00
tool_operhlp.c lib: remove support for CURL_DOES_CONVERSIONS 2022-02-04 08:05:35 +01:00
tool_operhlp.h copyright: fix year ranges 2020-11-05 08:22:10 +01:00
tool_panykey.c curl.se: new home 2020-11-04 23:59:47 +01:00
tool_panykey.h curl.se: new home 2020-11-04 23:59:47 +01:00
tool_paramhlp.c tool_getparam: initial --json support 2022-02-01 10:39:55 +01:00
tool_paramhlp.h curl: add --create-file-mode [mode] 2020-12-21 10:52:41 +01:00
tool_parsecfg.c tool_findfile: check ~/.config/curlrc too 2022-01-07 10:10:49 +01:00
tool_parsecfg.h copyright: fix year ranges 2020-11-05 08:22:10 +01:00
tool_progress.c tool_operate: Fix --fail-early with parallel transfers 2021-08-17 03:21:29 -04:00
tool_progress.h copyright: fix year ranges 2020-11-05 08:22:10 +01:00
tool_sdecls.h metalink: remove 2021-06-07 08:14:25 +02:00
tool_setopt.c curl: error out when options need features not present in libcurl 2022-03-10 08:30:45 +01:00
tool_setopt.h curl: error out when options need features not present in libcurl 2022-03-10 08:30:45 +01:00
tool_setup.h TPF: drop support 2022-02-04 08:05:35 +01:00
tool_sleep.c curl.se: new home 2020-11-04 23:59:47 +01:00
tool_sleep.h copyright: fix year ranges 2020-11-05 08:22:10 +01:00
tool_strdup.c curl.se: new home 2020-11-04 23:59:47 +01:00
tool_strdup.h copyright: fix year ranges 2020-11-05 08:22:10 +01:00
tool_urlglob.c glob: pass an 'int' as len when using printf's %*s 2021-06-30 14:05:56 +02:00
tool_urlglob.h curl.se: new home 2020-11-04 23:59:47 +01:00
tool_util.c misc: update incorrect copyright year ranges 2021-08-16 11:21:47 +02:00
tool_util.h copyright: fix year ranges 2020-11-05 08:22:10 +01:00
tool_version.h copyright: fix year ranges 2020-11-05 08:22:10 +01:00
tool_vms.c cleanup: constify unmodified static structs 2021-09-23 12:54:35 +02:00
tool_vms.h copyright: fix year ranges 2020-11-05 08:22:10 +01:00
tool_writeout_json.c copyright: update copyright year ranges to 2021 2021-03-27 23:00:14 +01:00
tool_writeout_json.h copyright: update copyright year ranges to 2021 2021-03-27 23:00:14 +01:00
tool_writeout.c writeout: fix %{http_version} for HTTP/3 2021-12-03 23:00:37 +01:00
tool_writeout.h http: add support to read and store the referrer header 2021-02-19 13:57:19 +00:00
tool_xattr.c checksrc: detect more kinds of NULL comparisons we avoid 2021-12-27 23:39:26 +01:00
tool_xattr.h copyright: fix year ranges 2020-11-05 08:22:10 +01:00