summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* github/workflow: enable MQTT in the macOS debug buildbagder/mqttDaniel Stenberg2020-04-141-1/+1
|
* azure: add mqtt support to one of the Windows buildsDaniel Stenberg2020-04-141-1/+1
|
* travis: add mqtt job on LinuxDaniel Stenberg2020-04-141-0/+5
|
* tests: add four MQTT tests 1190 - 1193Daniel Stenberg2020-04-145-0/+236
|
* tests: add the mqtt test server mqttdDaniel Stenberg2020-04-144-7/+1001
|
* tests: support hex encoded data and mqtt serverDaniel Stenberg2020-04-144-8/+132
| | | | The mqtt server is started using a "random" port.
* mqtt: add new protocolBjorn Stenberg2020-04-1418-57/+766
|
* TODO: Consider convenience options for JSON and XML?Daniel Stenberg2020-04-141-0/+15
| | | | Closes #5203
* tool: do not declare functions with Curl_ prefixDaniel Stenberg2020-04-144-47/+41
| | | | | | | | | To avoid collision risks with private libcurl symbols when linked with static versions (or just versions not hiding internal symbols). Reported-by: hydra3333 on github Fixes #5219 Closes #5234
* cmake: add aliases so exported target names are available in treeNathaniel R. Lewis2020-04-132-2/+12
| | | | | Reviewed-by: Brad King Closes #5206
* version: increase buffer space for ssl version outputDaniel Stenberg2020-04-131-2/+2
| | | | | | | | | To avoid it getting truncated, especially when several SSL backends are built-in. Reported-by: Gisle Vanem Fixes #5222 Closes #5226
* cirrus: no longer ignore test 504 which is working againMarc Hoersken2020-04-131-1/+1
| | | | The test is working again, because TCP blackholing is disabled.
* appveyor: completely disable tests that fail to timeout earlyMarc Hoersken2020-04-131-2/+2
| | | | | | | The tests changed from ignored to disabled are tests that are about connecting to non-listening socket. On AppVeyor these tests are not reliable, because for some unknown reason the connect is not timing out before the test time limit is reached.
* test1908: avoid using fixed port number in test dataDaniel Stenberg2020-04-131-1/+1
| | | | Closes #5225
* schannel: Fix blocking timeout logicAndrew Kurushin2020-04-121-6/+6
| | | | | | | | | | | | | | | - Fix schannel_send for the case when no timeout was set. Prior to this change schannel would error if the socket was not ready to send data and no timeout was set. This commit is similar to parent commit 89dc6e0 which recently made the same change for SOCKS, for the same reason. Basically it was not well understood that when Curl_timeleft returns 0 it is not a timeout of 0 ms but actually means no timeout. Fixes https://github.com/curl/curl/issues/5177 Closes https://github.com/curl/curl/pull/5221
* socks: Fix blocking timeout logicJay Satiro2020-04-122-6/+7
| | | | | | | | | | | | | | | | - Document in Curl_timeleft's comment block that returning 0 signals no timeout (ie there's infinite time left). - Fix SOCKS' Curl_blockread_all for the case when no timeout was set. Prior to this change if the timeout had a value of 0 and that was passed to SOCKET_READABLE it would return right away instead of blocking. That was likely because it was not well understood that when Curl_timeleft returns 0 it is not a timeout of 0 ms but actually means no timeout. Ref: https://github.com/curl/curl/pull/5214#issuecomment-612512360 Closes https://github.com/curl/curl/pull/5220
* gopher: check remaining time left during write busy loopMarc Hoersken2020-04-121-4/+17
| | | | | | | | | | | Prior to this change gopher's blocking code would block forever, ignoring any set timeout value. Assisted-by: Jay Satiro Reviewed-by: Daniel Stenberg Similar to #5220 and #5221 Closes #5214
* gnutls: ensure TLS 1.3 when SRP isn't requestedDirkjan Bussink2020-04-131-36/+45
| | | | | | | | | | | | | When SRP is requested in the priority string, GnuTLS will disable support for TLS 1.3. Before this change, curl would always add +SRP to the priority list, effectively always disabling TLS 1.3 support. With this change, +SRP is only added to the priority list when SRP authentication is also requested. This also allows updating the error handling here to not have to retry without SRP. This is because SRP is only added when requested and in that case a retry is not needed. Closes #5223
* tests/server: add hidden window to gracefully handle WM_CLOSEMarc Hoersken2020-04-121-0/+88
| | | | Forward Window events as signals to existing signal event handler.
* tests/server: add CTRL event handler for Win32 consolesMarc Hoersken2020-04-121-0/+48
| | | | Forward CTRL events as signals to existing signal event handler.
* tests/server: move all signal handling routines to util.[ch]Marc Hoersken2020-04-127-647/+158
| | | | Avoid code duplication to prepare for portability enhancements.
* compressed.d: stress that the headers are not modifiedDaniel Stenberg2020-04-121-2/+4
| | | | | | | Suggested-by: Michael Osipov Assisted-by: Jay Satiro Bug: https://github.com/curl/curl/issues/5182#issuecomment-611638008 Closes #5217
* tests/server/util.c: use curl_off_t instead of long for pidMarc Hoersken2020-04-111-3/+3
| | | | | | | Avoid potential overflow of huge PIDs on Windows. Related to #5188 Assisted-by: Marcel Raad
* tests: use Cygwin/msys PIDs for stunnel and sshd on WindowsMarc Hoersken2020-04-112-4/+35
| | | | | | | | | | | | Since the Windows versions of both programs would write Windows PIDs to their pidfiles which we cannot handle, we need to use our known perl.exe Cygwin/msys PID together with exec() in order to tie the spawned processes to the existance of our perl.exe The perl.exe that is executing secureserver.pl and sshserver.pl has a Cygwin/msys PID, because it is started inside Cygwin/msys. Related to #5188
* tests: add Windows compatible pidwait like pidkill and pidtermMarc Hoersken2020-04-113-11/+33
| | | | Related to #5188
* tests: fix conflict between Cygwin/msys and Windows PIDsMarc Hoersken2020-04-115-33/+79
| | | | | | | | | | | | | | Add 65536 to Windows PIDs to allow Windows specific treatment by having disjunct ranges for Cygwin/msys and Windows PIDs. See also: - https://cygwin.com/git/?p=newlib-cygwin.git;a=commit; ↵ h=b5e1003722cb14235c4f166be72c09acdffc62ea - https://cygwin.com/git/?p=newlib-cygwin.git;a=commit; ↵ h=448cf5aa4b429d5a9cebf92a0da4ab4b5b6d23fe Replaces #5178 Closes #5188
* RELEASE-NOTES: syncedDaniel Stenberg2020-04-111-12/+38
|
* release-notes.pl: detect the start of the references in cleanup modeDaniel Stenberg2020-04-111-2/+1
|
* Revert "file: on Windows, refuse paths that start with \\"Daniel Stenberg2020-04-111-4/+2
| | | | | | | | | This reverts commit 1b71bc532bde8621fd3260843f8197182a467ff2. Reminded-by: Chris Roberts Bug: https://curl.haxx.se/mail/archive-2020-04/0013.html Closes #5215
* lib: fix conversion warnings for SOCKET_WRITABLE/READABLEJay Satiro2020-04-112-3/+6
| | | | | | | | | | - If loss of data may occur converting a timediff_t to time_t and the time value is > TIME_T_MAX then treat it as TIME_T_MAX. This is a follow-up to 8843678 which removed the (time_t) typecast from the macros so that conversion warnings could be identified. Closes https://github.com/curl/curl/pull/5199
* test1148: tolerate progress updates better (again)Jay Satiro2020-04-111-7/+7
| | | | | | | | | | | | | | | | | | | | | | - Ignore intermediate progress updates. - Support locales that use a character other than period as decimal separator (eg 100,0%). test1148 checks that the progress finishes at 100% and has the right bar width. Prior to this change the test assumed that the only progress reported for such a quick transfer was 100%, however in rare instances (like in the CI where transfer time can slow considerably) there may be intermediate updates. For example, below is stderrlog1148 from a failed CI run with explicit \r and \n added (it is one line; broken up so that it's easier to understand). \r \r################################## 48.3% \r######################################################################## 100.0% \n Closes https://github.com/curl/curl/pull/5194
* sshserver.pl: use cached Win32 environment check variableMarc Hoersken2020-04-101-2/+2
|
* appveyor: partially revert 3413a110 to keep build without proxyMarc Hoersken2020-04-101-2/+2
| | | | | Ref: #5211 and #4526 Reported-by: Marcel Raad
* appveyor: ignore failing 'connect to non-listening proxy' testsMarc Hoersken2020-04-101-3/+3
| | | | Closes #5211
* CI/macos: convert CRLF to LF and align indentationMarc Hoersken2020-04-101-97/+97
|
* url: allow non-HTTPS altsvc-matching for debug buildsDaniel Stenberg2020-04-091-1/+8
| | | | | | | This is already partly supported but this part was missing. Reported-by: James Fuller Closes #5205
* server/resolve: remove AI_CANONNAME to make macos tell the truthDaniel Stenberg2020-04-091-1/+1
| | | | | | | | With this bit set, my mac successfully resolves "ip6-localhost" when in fact there is no such host known to my machine! That in turn made test 241 wrongly execute and fail. Closes #5202
* runtests: fix warning about using an undefined variableDaniel Stenberg2020-04-091-2/+2
| | | | Follow-up from 4d939ef6ceb2db1
* release-notes: fix the initial reference list outputDaniel Stenberg2020-04-081-19/+20
|
* github actions: run when pushed to master or */ci + PRsDaniel Stenberg2020-04-082-2/+20
| | | | | | | Avoid double-builds when using "local" branches for PRs. For both macos and fuzz jobs. Closes #5201
* runtests: provide nicer errormsg when protocol "dump" file is emptyDaniel Stenberg2020-04-081-0/+7
|
* schannel: support .P12 or .PFX client certificatesGilles Vollant2020-04-081-34/+124
| | | | | | | Used with curl command line option like this: --cert <filename>:<password> --cert-type p12 Closes #5193
* tests: verify split initial HTTP requests with CURL_SMALLREQSENDDaniel Stenberg2020-04-083-27/+159
| | | | | | | | | | test1294: "split request" being when the entire request isn't sent in the first go, and the remainder is sent in the PERFORM state. A GET request is otherwise not sending anything during PERFORM. test1295: same kind of split but with POST Closes #5197
* http: don't consider upload done if the request isn't completely sent offDaniel Stenberg2020-04-082-3/+8
| | | | | Fixes #4919 Closes #5197
* http: allow Curl_add_buffer_send() to do a short first send by forceDaniel Stenberg2020-04-081-1/+14
| | | | | | | In a debug build, settting the environment variable "CURL_SMALLREQSEND" will make the first HTTP request send not send more bytes than the set amount, thus ending up verifying that the logic for handling a split HTTP request send works correctly.
* connect: store connection info for QUIC connectionsDaniel Stenberg2020-04-081-41/+40
| | | | | | | | | Restores the --head functionality to the curl utility which extracts 'protocol' that is stored that way. Reported-by: James Fuller Fixes #5196 Closes #5198
* tests/README: update the port numbers listDaniel Stenberg2020-04-071-6/+5
| | | | | Since the pipelining server is long gone. Reported-by: James Fuller
* select: remove typecast from SOCKET_WRITABLE/READABLE macrosDaniel Stenberg2020-04-071-2/+2
| | | | | | | So that they don't hide conversions-by-mistake Reviewed-by: Jay Satiro Closes #5190
* CURLOPT_WRITEFUNCTION.3: add inline example and new see-alsoDaniel Stenberg2020-04-071-4/+33
| | | | Closes #5192
* release-notes: output trailing references sorted numericallyDaniel Stenberg2020-04-061-12/+10
|