9bf79d0a | 07-Jul-2021 |
Jonathan Wernberg |
Revert "ftp: Expression 'ftpc->wait_data_conn' is always false" The reverted commit introduced a logic error in code that was correct. The client using libcurl would notice the
Revert "ftp: Expression 'ftpc->wait_data_conn' is always false" The reverted commit introduced a logic error in code that was correct. The client using libcurl would notice the error since FTP file uploads in active transfer mode would somtimes complete with success despite no transfer having been performed and the "uploaded" file thus not being on the remote server afterwards. The FTP server would notice the error because it receives a RST on the data connection it has established with the client before any data was transferred at all. The logic error happens if the STOR response from the server have arrived by the time ftp_multi_statemach() in the affected code path is called, but the incoming data connection have not arrived yet. In that case, the processing of the STOR response will cause 'ftpc->wait_data_conn' to be set to TRUE, contradicting the comment in the code. Since 'complete' will also be set, later logic would believe the transfer was done. In most cases, the STOR response will not have arrived yet when the affected code path is executed, or the incoming connection will also have arrived, and thus the error would not express itself. But if the speed difference of the device using libcurl and the FTP server is exactly right, the error may happen as often as in one out of hundred file transfers. This reverts commit 49f3117a238b6eac0e22a32f50699a9eddcb66ab. Bug: https://curl.se/mail/lib-2021-07/0025.html Closes #7362
show more ...
|
9053dbbf | 07-Jul-2021 |
Daniel Stenberg |
msnprintf: return number of printed characters excluding null byte ... even when the output is "capped" by the maximum length argument. Clarified in the docs. Closes #7361 |
e7416cfd | 06-Jul-2021 |
Daniel Stenberg |
infof: remove newline from format strings, always append it - the data needs to be "line-based" anyway since it's also passed to the debug callback/application - it makes info
infof: remove newline from format strings, always append it - the data needs to be "line-based" anyway since it's also passed to the debug callback/application - it makes infof() work like failf() and consistency is good - there's an assert that triggers on newlines in the format string - Also removes a few instances of "..." - Removes the code that would append "..." to the end of the data *iff* it was truncated in infof() Closes #7357
show more ...
|
1026b36e | 07-Jul-2021 |
Daniel Stenberg |
examples/multi-single: fix scan-build warning warning: Value stored to 'mc' during its initialization is never read Follow-up to ae8e11ed5fd2ce Closes #7360 |
1e488d38 | 05-Jul-2021 |
Daniel Stenberg |
wolfssl: failing to set a session id is not reason to error out ... as it is *probably* just timed out. Reported-by: Francisco Munoz Closes #7358 |
ae8e11ed | 06-Jul-2021 |
Daniel Stenberg |
docs/examples: use curl_multi_poll() in multi examples The API is soon two years old and deserves being shown as the primary way to drive multi code as it makes it much easier to write c
docs/examples: use curl_multi_poll() in multi examples The API is soon two years old and deserves being shown as the primary way to drive multi code as it makes it much easier to write code. multi-poll: removed multi-legacy: add to show how we did multi API use before curl_multi_wait/poll. Closes #7352
show more ...
|
738fb63e | 05-Jul-2021 |
Daniel Stenberg |
KNOWN_BUGS: flaky Windows CI builds Closes #6972 |
ff7c775a | 05-Jul-2021 |
Daniel Stenberg |
RELEASE-NOTES: synced |
c3d61266 | 05-Jul-2021 |
Daniel Stenberg |
test1147: hyper doesn't allow "crazy" request headers like built-in ... so strip that from the test. Closes #7349 |
a62ece3f | 05-Jul-2021 |
Daniel Stenberg |
c-hyper: bail on too long response headers To match with built-in behaviors. Makes test 1154 work. Closes #7350 |
0965348c | 05-Jul-2021 |
Daniel Stenberg |
test1151: added missing CRLF to work with hyper Closes #7350 |
0b026934 | 05-Jul-2021 |
Daniel Stenberg |
c-hyper: add support for transfer-encoding in the request Closes #7348 |
4f3828d5 | 04-Jul-2021 |
Andrea Pappacoda |
cmake: remove libssh2 feature checks libssh2 features are detected based on version since commit 9dbbba997608f7c3c5de1c627c77c8cd2aa85b73 Closes #7343 |
e41feede | 05-Jul-2021 |
Daniel Stenberg |
test1116: hyper doesn't pass through "surprise-trailers" Closes #7344 |
cffbccd0 | 05-Jul-2021 |
Daniel Stenberg |
socks4: scan for the IPv4 address in resolve results Follow-up to 84d2839740 which changed the resolving to always resolve both address families, but since SOCKS4 only supports IPv4 it s
socks4: scan for the IPv4 address in resolve results Follow-up to 84d2839740 which changed the resolving to always resolve both address families, but since SOCKS4 only supports IPv4 it should scan for and use the first available IPv4 address. Reported-by: shithappens2016 on github Fixes #7345 Closes #7346
show more ...
|
2b311d36 | 03-Jul-2021 |
Jay Satiro |
proto.d: fix formatting for paragraphs after margin changes Closes https://github.com/curl/curl/pull/7341 |
d352a1bb | 03-Jul-2021 |
Jay Satiro |
pinnedpubkey.d: fix formatting for version support lists Closes https://github.com/curl/curl/pull/7340 |
0a0bc4a0 | 02-Jul-2021 |
Daniel Stenberg |
TODO: "Support in-memory certs/ca certs/keys" done Has been suppored for a while now with the *BLOB options. |
a37fc62e | 01-Jul-2021 |
Daniel Stenberg |
examples: safer and more proper read callback logic The same callback code is used in: imap-append.c smtp-authzid.c smtp-mail.c smtp-multi.c smtp-ssl.c smt
examples: safer and more proper read callback logic The same callback code is used in: imap-append.c smtp-authzid.c smtp-mail.c smtp-multi.c smtp-ssl.c smtp-tls.c It should not assume that it can copy full lines into the buffer as it will encourage sloppy coding practices. Instead use byte-wise logic and check/acknowledge the buffer size appropriately. Reported-by: Harry Sintonen Fixes #7330 Closes #7331
show more ...
|
07fa74d3 | 01-Jul-2021 |
Daniel Stenberg |
test1519: adjusted to work with hyper Closes #7333 |
a80f8ea1 | 01-Jul-2021 |
Daniel Stenberg |
test1518: adjusted to work with hyper ... by making sure the stdout output doesn't look like HTTP headers. Closes #7333 |
7f11282d | 01-Jul-2021 |
Daniel Stenberg |
test1514: add a CRLF to the response to make it correct Makes hyper accept it fine instead returning HYPERE_UNEXPECTED_EOF on us. Closes #7334 |
e081048c | 30-Jun-2021 |
Daniel Stenberg |
formdata: avoid "Argument cannot be negative" warning ... when converting a curl_off_t to size_t, by using CURL_ZERO_TERMINATED before passing the argument to the function. Dete
formdata: avoid "Argument cannot be negative" warning ... when converting a curl_off_t to size_t, by using CURL_ZERO_TERMINATED before passing the argument to the function. Detected by Coverity CID 1486590. Closes #7328 Assisted-by: Daniel Gustafsson
show more ...
|
1ff1d9e1 | 30-Jun-2021 |
Daniel Stenberg |
lib: more %u for port and int for %*s fixes Detected by Coverity Closes #7329 |
6a40e6f8 | 30-Jun-2021 |
Daniel Stenberg |
doh: (void)-prefix call to curl_easy_setopt |