summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* test1238: slowed down a little morebagder/multi-timeoutDaniel Stenberg2017-04-111-1/+1
| | | | | Due to the Curl_expire_latest fix, the speedcheck gets checked differently this test could fail intermittently.
* Curl_expire_latest: ignore already expired timersDaniel Stenberg2017-04-101-3/+7
| | | | | | | | If the existing timer is still in there but has expired, the new timer should be added. Reported-by: Rainer Canavan Bug: https://curl.haxx.se/mail/lib-2017-04/0030.html
* openssl: fix this statement may fall through [-Wimplicit-fallthrough=]Alexis La Goutte2017-04-101-0/+2
| | | | Closes #1402
* nss: load CA certificates even with --insecureKamil Dudka2017-04-101-2/+5
| | | | | | | | | ... because they may include an intermediate certificate for a client certificate and the intermediate certificate needs to be presented to the server, no matter if we verify the peer or not. Reported-by: thraidh Closes #851
* RELEASE-NOTES: synced with f9d1e9a27f7e1Daniel Stenberg2017-04-101-9/+30
|
* libcurl-thread.3: fixed a bad macro that caused test 1140 to failDan Fandrich2017-04-101-1/+1
|
* libcurl-thread.3: also mention threaded-resolverDaniel Stenberg2017-04-091-4/+5
| | | | | Reported-by: Alex Bligh Bug: https://curl.haxx.se/mail/lib-2017-04/0044.html
* .github/stale.yml: enable the stale botDaniel Stenberg2017-04-091-0/+17
| | | | | | | | | | | Issues and PRs with no activity for 180 days will get marked as stale, and if no further activity happens within 14 more days, the issue gets closed. This follows our established policy of not letting stalled bugs "get in the way": https://curl.haxx.se/docs/bugs.html#Closing_off_stalled_bugs Closes #1398
* CURLINFO_SCHEME.3: fix variable typeJay Satiro2017-04-081-6/+9
| | | | - Change documented param type to char ** from incorrect long *.
* INSTALL.md: fix secure transport configure argumentsMarcel Raad2017-04-081-1/+1
| | | | --without-ssl is needed instead of --with-winssl.
* vtls: fix unreferenced variable warningsMarcel Raad2017-04-082-2/+4
| | | | ... by moving the variables into the correct #ifdef block.
* BUGS: "Bugs in old versions"Daniel Stenberg2017-04-071-0/+33
|
* system.h: add section for tccDaniel Stenberg2017-04-071-0/+13
| | | | Closes #1397
* schannel: fix compiler warningsMarcel Raad2017-04-071-3/+3
| | | | | | | | | | When UNICODE is not defined, the Curl_convert_UTF8_to_tchar macro maps directly to its argument. As it is declared as a pointer to const and InitializeSecurityContext expects a pointer to non-const, both MSVC and MinGW issue a warning about implicitly casting away the const. Fix this by declaring the variables as pointers to non-const. Closes https://github.com/curl/curl/pull/1394
* sspi: print out InitializeSecurityContext() error messageIsaac Boukris2017-04-071-0/+3
| | | | | | | Reported-by: Carsten (talksinmath) Fixes #1384 Closes #1395
* gtls: fix compiler warningMarcel Raad2017-04-061-2/+2
| | | | | Curl_timeleft returns time_t instead of long since commit 21aa32d30dbf319f2d336e0cb68d3a3235869fbb.
* test1606: verify speedcheckDaniel Stenberg2017-04-064-2/+121
|
* low_speed_limit: improved function for longer time periodsDaniel Stenberg2017-04-061-29/+30
| | | | | | | | | Previously, periods of fast speed between periods of slow speed would not count and could still erroneously trigger a timeout. Reported-by: Paul Harris Fixes #1345 Closes #1390
* system.h: set sizeof long to 4 on "default 32 bit" systemsDaniel Stenberg2017-04-061-0/+1
| | | | | Triggered a test failure on test 1541 for the build known as "Linux 4.4 i686 tcc 0.9.26 glibc 2.20"
* nss: fix build after e60fe20fdf94e829ba5fce33f7a9d6c281149f7dMarcel Raad2017-04-062-16/+9
| | | | | | Curl_llist_alloc is now Curl_llist_init. Closes https://github.com/curl/curl/pull/1391
* INSTALL.cmake: more problemsDaniel Stenberg2017-04-061-1/+2
| | | | and mention specific issues where they are discussed
* test1541: ignore the curl_off_t variable type name comparisonDaniel Stenberg2017-04-051-0/+8
| | | | | | | ... the sizes and the formatting strings are what's really important and avoids problems with int64_t vs "long long". Bug: https://curl.haxx.se/mail/lib-2017-04/0019.html
* Revert "configure: prefer 'long long' to int64_t for curl_off_t"Daniel Stenberg2017-04-051-2/+2
| | | | | | This reverts commit 81284374bf3c670d2050f8562edeb69f060b07cc. Due to mingw32 brekage.
* tool_operate: fix MinGW compiler warningMarcel Raad2017-04-051-23/+27
| | | | | | | | | | | MinGW complains: tool_operate.c:197:15: error: comparison is always true due to limited range of data type [-Werror=type-limits] Fix this by only doing the comparison if 'long' is large enough to hold the constant it is compared with. Closes https://github.com/curl/curl/pull/1378
* tool_operate: move filetime code to its own functionMarcel Raad2017-04-051-49/+60
| | | | Ref: https://github.com/curl/curl/pull/1378
* configure: prefer 'long long' to int64_t for curl_off_tDaniel Stenberg2017-04-051-2/+2
| | | | | | | | | | Since it is a native type and it makes it less complicated to find a matching one in system.h Bug: https://curl.haxx.se/mail/lib-2017-04/0010.html Reported-by: Dan Fandrich Closes #1388
* tests: added test for Curl_splaygetbest to unit1309Dániel Bakai2017-04-042-3/+146
| | | | | | | | This checks the new behavior of Curl_splaygetbest, so that the smallest node not larger than the key is removed, and FIFO behavior is kept even when there are multiple nodes with the same key. Closes #1358
* multi: fix queueing of pending easy handlesDániel Bakai2017-04-043-62/+51
| | | | | | | | | | | | | | | | | | Multi handles repeatedly invert the queue of pending easy handles when used with CURLMOPT_MAX_TOTAL_CONNECTIONS. This is caused by a multistep process involving Curl_splaygetbest and violates the FIFO property of the multi handle. This patch fixes this issue by redefining the "best" node in the context of timeouts as the "smallest not larger than now", and implementing the necessary data structure modifications to do this effectively, namely: - splay nodes with the same key are now stored in a doubly-linked circular list instead of a non-circular one to enable O(1) insertion to the tail of the list - Curl_splayinsert inserts nodes with the same key to the tail of the same list - in case of multiple nodes with the same key, the one on the head of the list gets selected
* tool: fix Windows Unicode buildMarcel Raad2017-04-042-3/+3
| | | | | ... by explicitly calling the ANSI versions of Windows API functions where required.
* curl_sasl: declare mechtable staticMartin Kepplinger2017-04-041-1/+1
| | | | struct mechtable is only used locally here. It can be declared static.
* url: don't free postponed data on connection reuseAntti Hätälä2017-04-041-1/+0
| | | | | | | | | - Don't free postponed data on a connection that will be reused since doing so can cause data loss when pipelining. Only Windows builds are affected by this. Closes https://github.com/curl/curl/issues/1380
* RELEASE-NOTES: synced with 4f2e348f9b42c69c480Daniel Stenberg2017-04-041-9/+39
|
* hash: move key into hash struct to reduce mallocsDaniel Stenberg2017-04-042-20/+8
| | | | | | | This removes one tiny malloc for each hash struct allocated. In a simple case like "curl localhost", this save three mallocs. Closes #1376
* llist: replace Curl_llist_alloc with Curl_llist_initDaniel Stenberg2017-04-0418-310/+214
| | | | | | | | No longer allocate the curl_llist head struct for lists separately. Removes 17 (15%) tiny allocations in a normal "curl localhost" invoke. closes #1381
* easy: silence compiler warningJay Satiro2017-04-041-1/+1
| | | | | | | | Safe to silence warning adding time delta of poll, which can trigger on Windows since sizeof time_t > sizeof long. warning C4244: '+=' : conversion from 'time_t' to 'long', possible loss of data
* docs: minor typo in write-out.dRichlv2017-04-041-1/+1
| | | | Closes #1382
* include: curl/system.h is a run-time version of curlbuild.hDaniel Stenberg2017-04-039-40/+599
| | | | | | | | | | | | | | | | | | system.h is aimed to replace curlbuild.h at a later point in time when we feel confident system.h works sufficiently well. curl/system.h is currently used in parallel with curl/curlbuild.h curl/system.h determines a data sizes, data types and include file status based on available preprocessor defines instead of getting generated at build-time. This, in order to avoid relying on a build-time generated file that makes it complicated to do 32 and 64 bit bields from the same installed set of headers. Test 1541 verifies that system.h comes to the same conclusion that curlbuild.h offers. Closes #1373
* multi: make curl_multi_wait avoid malloc in the typical caseDaniel Stenberg2017-04-031-4/+14
| | | | | | When only a few additional file descriptors are used, avoid the malloc. Closes #1377
* tests/server/util: remove in6addr_any for recent MinGWMarcel Raad2017-04-031-1/+9
| | | | | | | | | | | | | | | | In ancient MinGW versions, in6addr_any was declared as extern, but not defined. Because of that, 22a0c57746ae12506b1ba0f0fafffd26c1907d6a added definitions for in6addr_any when compiling with MinGW. The bug was fixed in w32api version 3.6 from 2006, so this workaround is not needed anymore for recent versions. This fixes the following MinGW-w64 warnings because the MinGW-w64 version of IN6ADDR_ANY_INIT has the two additional braces inside the macro: util.c:59:14: warning: braces around scalar initializer util.c:59:40: warning: excess elements in scalar initializer Ref: https://sourceforge.net/p/mingw/mingw-org-wsl/ci/e4803e0da25c57ae1ad0fa75ae2b7182ff7fa339/tree/w32api/ChangeLog Closes https://github.com/curl/curl/pull/1379
* docs: added examples for CURLINFO_FILETIME.3 and CURLOPT_FILETIME.3Daniel Stenberg2017-04-032-4/+38
|
* fail-early.d: fix typosJay Satiro2017-03-311-4/+3
|
* docs: Explain --fail-early does not imply --failJay Satiro2017-03-311-2/+6
| | | | Closes https://github.com/curl/curl/pull/1375
* telnet: (win32) fix read callback return variableDaniel Stenberg2017-04-011-6/+6
| | | | | | | | | | | | | | telnet.c(1427,21): warning: comparison of constant 268435456 with expression of type 'CURLcode' is always false telnet.c(1433,21): warning: comparison of constant 268435457 with expression of type 'CURLcode' is always false Reviewed-by: Jay Satiro Reported-by: Gisle Vanem Bug: https://github.com/curl/curl/issues/1225#issuecomment-290340890 Closes #1374
* CTestConfig.cmake: removed, unusedDaniel Stenberg2017-03-311-13/+0
|
* libcurl.def: removed, unusedDaniel Stenberg2017-03-311-53/+0
|
* docs/index.html: removed, was not shipped anywayDaniel Stenberg2017-03-311-20/+0
|
* dist: add missing files to the tarballDaniel Stenberg2017-03-312-9/+13
|
* cmake: fix build with cmake 2.8.12.2Peter Wu2017-03-303-5/+5
| | | | | | | | | For some reason, CMake 2.8.12.2 did not expand the list argument in a single DEPENDS argument. Remove the quotes, so it gets expanded into multiple arguments for add_custom_command and add_custom_target. Fixes https://github.com/curl/curl/issues/1370 Closes #1372
* ssh: fix narrowing conversion warningMarcel Raad2017-03-301-1/+1
| | | | | | | | 'left' is used as time_t but declared as long. MinGW complains: error: conversion to 'long int' from 'time_t {aka long long int}' may alter its value [-Werror=conversion] Changed the declaration to time_t.
* http2: silence unused parameter warningsMarcel Raad2017-03-301-0/+6
| | | | | In release mode, MinGW complains: error: unused parameter 'lib_error_code' [-Werror=unused-parameter]