summaryrefslogtreecommitdiff
path: root/src/tool_progress.c
Commit message (Collapse)AuthorAgeFilesLines
* tool: improve --stderr handlingJay Satiro2023-03-121-2/+2
| | | | | | | | | | | | | | | | - freopen stderr with the user-specified file (--stderr file) instead of using a separate 'errors' stream. - In tool_setup.h override stdio.h's stderr macro as global variable tool_stderr. Both freopen and overriding the stderr macro are necessary because if the user-specified filename is "-" then stdout is assigned to tool_stderr and no freopen takes place. See the PR for more information. Ref: https://github.com/curl/curl/issues/10491 Closes https://github.com/curl/curl/pull/10673
* misc: remove support for curl_off_t < 8 bytesDaniel Stenberg2023-02-241-12/+2
| | | | Closes #10597
* tool_progress: shut off progress meter for --silent in parallelDaniel Stenberg2023-02-211-1/+1
| | | | | | Reported-by: finkjsc on github Fixes #10573 Closes #10579
* copyright: update all copyright lines and remove year rangesDaniel Stenberg2023-01-031-1/+1
| | | | | | | | | | | | - they are mostly pointless in all major jurisdictions - many big corporations and projects already don't use them - saves us from pointless churn - git keeps history for us - the year range is kept in COPYING checksrc is updated to allow non-year using copyright statements Closes #10205
* tool_progress: remove 'Qd' from the parallel progress barDaniel Stenberg2022-08-311-10/+5
| | | | | | | The "queued" value is no longer showing anything useful to the user. It is an internal number of transfers waiting at that moment. Closes #9389
* tool_progress: avoid division by zero in parallel progress meterDaniel Stenberg2022-07-021-0/+2
| | | | | | Reported-by: Brian Carpenter Fixes #9082 Closes #9083
* copyright: make repository REUSE compliantmax.mehl2022-06-131-1/+3
| | | | | | | | | | | Add licensing and copyright information for all files in this repository. This either happens in the file itself as a comment header or in the file `.reuse/dep5`. This commit also adds a Github workflow to check pull requests and adapts copyright.pl to the changes. Closes #8869
* tool_operate: Fix --fail-early with parallel transfersJay Satiro2021-08-171-0/+3
| | | | | | | | | | | | | | | | | | | | | | - Abort via progress callback to fail early during parallel transfers. When a critical error occurs during a transfer (eg --fail-early constraint) then other running transfers will be aborted via progress callback and finish with error CURLE_ABORTED_BY_CALLBACK (42). In this case, the callback error does not become the most recent error and a custom error message is used for those transfers: curld --fail --fail-early --parallel https://httpbin.org/status/404 https://httpbin.org/delay/10 curl: (22) The requested URL returned error: 404 curl: (42) Transfer aborted due to critical error in another transfer > echo %ERRORLEVEL% 22 Fixes https://github.com/curl/curl/issues/6939 Closes https://github.com/curl/curl/pull/6984
* tool_progress: Fix progress meter in parallel modeCherish982021-04-051-0/+8
| | | | | | | | | | | | | | | | Make sure the total amount of DL/UL bytes are counted before the transfer finalizes. Otherwise if a transfer finishes too quick, its total numbers are not added, and results in a DL%/UL% that goes above 100%. Detail: progress_meter() is called periodically, and it may not catch a transfer's total bytes if the value was unknown during the last call, and the transfer is finished and deleted (i.e., lost) during the next call. Closes https://github.com/curl/curl/pull/6840
* config: remove CURL_SIZEOF_CURL_OFF_T use only SIZEOF_CURL_OFF_TDaniel Stenberg2021-03-111-2/+2
| | | | | | | Make the code consistently use a single name for the size of the "curl_off_t" type. Closes #6702
* infof/failf calls: fix format specifiersRikard Falkeborn2020-11-241-2/+2
| | | | | | Update a few format specifiers to match what is being printed. Closes #6241
* curl.se: new homeDaniel Stenberg2020-11-041-1/+1
| | | | Closes #6172
* curl: remove 'config' field from OutStructDaniel Stenberg2020-01-121-3/+2
| | | | | | | | | | | | As it was just unnecessary duplicated information already stored in the 'per_transfer' struct and that's around mostly anyway. The duplicated pointer caused problems when the code flow was aborted before the dupe was filled in and could cause a NULL pointer access. Reported-by: Brian Carpenter Fixes #4807 Closes #4810
* curl: fix --upload-file . hangs if delay in STDINJohn Schroeder2019-11-261-0/+8
| | | | | | | | | | | | | | | Attempt to unpause a busy read in the CURLOPT_XFERINFOFUNCTION. When uploading from stdin in non-blocking mode, a delay in reading the stream (EAGAIN) causes curl to pause sending data (CURL_READFUNC_PAUSE). Prior to this change, a busy read was detected and unpaused only in the CURLOPT_WRITEFUNCTION handler. This change performs the same busy read handling in a CURLOPT_XFERINFOFUNCTION handler. Fixes #2051 Closes #4599 Reported-by: bdry on github
* curl: support parallel transfersDaniel Stenberg2019-07-201-0/+314
| | | | | | | | This is done by making sure each individual transfer is first added to a linked list as then they can be performed serially, or at will, in parallel. Closes #3804
* curl tool: reviewed code moved to tool_*.[ch] filesYang Tse2011-09-241-142/+0
|
* curl tool: reviewed code moved to tool_*.[ch] filesYang Tse2011-09-211-0/+142
my_setopt and my_setopt_str no longer ignores curl_easy_setopt result. Fixed some OOM handling issues.