platform/upstream/curl.git
10 years agossh: Pass errors from libssh2_sftp_read up the stack
Dan Fandrich [Thu, 6 Mar 2014 11:48:33 +0000 (12:48 +0100)]
ssh: Pass errors from libssh2_sftp_read up the stack

10 years agoparse_remote_port: error out on illegal port numbers better
Daniel Stenberg [Thu, 6 Mar 2014 00:06:45 +0000 (00:06 +0000)]
parse_remote_port: error out on illegal port numbers better

10 years agoremote_port: allow connect to port 0
Daniel Stenberg [Wed, 5 Mar 2014 17:38:05 +0000 (17:38 +0000)]
remote_port: allow connect to port 0

Port number zero is perfectly allowed to connect to. I moved to storing
the remote port number in an int so that -1 means undefined and 0-65535
can be used for legitimate port numbers.

10 years agomulti_runsingle: move timestamp into INIT
Daniel Stenberg [Mon, 17 Feb 2014 22:43:31 +0000 (23:43 +0100)]
multi_runsingle: move timestamp into INIT

Setting the TIMER_STARTSINGLE timestamp first in CONNECT has the
drawback that for actions that go back to the CONNECT state, the time
stamp is reset and for the multi_socket API there's no corresponding
Curl_expire() then so the timeout logic gets wrong!

Reported-by: Brad Spencer
Bug: http://curl.haxx.se/mail/lib-2014-02/0036.html

10 years agohostcheck: update comment after previous change
Daniel Stenberg [Mon, 3 Mar 2014 12:41:48 +0000 (13:41 +0100)]
hostcheck: update comment after previous change

10 years agohostcheck: Curl_cert_hostcheck is not used by NSS builds
Daniel Stenberg [Mon, 3 Mar 2014 12:39:06 +0000 (13:39 +0100)]
hostcheck: Curl_cert_hostcheck is not used by NSS builds

10 years agoconfigure: call it GSS-API
Michael Osipov [Mon, 3 Mar 2014 10:06:38 +0000 (11:06 +0100)]
configure: call it GSS-API

... since that’s how the RFC calls it.

10 years agox509asn: moved out Curl_verifyhost from NSS builds
Daniel Stenberg [Mon, 3 Mar 2014 07:44:25 +0000 (08:44 +0100)]
x509asn: moved out Curl_verifyhost from NSS builds

... as it isn't used then!

10 years agoNSS: avoid compiler warnings when built without http2 support
Daniel Stenberg [Mon, 3 Mar 2014 07:39:25 +0000 (08:39 +0100)]
NSS: avoid compiler warnings when built without http2 support

10 years agoRework Open Watcom make files to use standard Wmake features
Jiri Malak [Sun, 2 Mar 2014 23:27:38 +0000 (00:27 +0100)]
Rework Open Watcom make files to use standard Wmake features

Remove slash/backslash problem, now only slashes are used,
Wmake automaticaly translate slash/backslash to proper version or tools are not sensitive for it.
Enable spaces in path.
Use internal rm command for all host platforms
Add error message if old Open Watcom version is used. Some old versions exhibit build problems for Curl latest version. Now only versions 1.8, 1.9 and 2.O beta are supported

10 years agoparsedate: Fixed compilation warning
Jiri Malak [Sun, 2 Mar 2014 08:04:35 +0000 (09:04 +0100)]
parsedate: Fixed compilation warning

Remove compilation message for platforms where size of long type
is equal size of int type.

10 years agoRELEASE-NOTES: Synced with 7fef4016de
Steve Holme [Sun, 2 Mar 2014 10:11:12 +0000 (10:11 +0000)]
RELEASE-NOTES: Synced with 7fef4016de

10 years agotool: Do not output libcurl source for the information only parameters
Steve Holme [Sun, 2 Mar 2014 09:50:36 +0000 (09:50 +0000)]
tool: Do not output libcurl source for the information only parameters

Ensure a source file isn't generated for the following informational
command line parameters when --libcurl is specified:

--help, --manual, --version and --engine list

As the output would only include a fairly empty looking main() function
and a call to curl_easy_init() and curl_easy_cleanup() when performed
with --engine list.

10 years agotool: Fixed libcurl source output for multiple operations
Steve Holme [Sun, 2 Mar 2014 09:28:17 +0000 (09:28 +0000)]
tool: Fixed libcurl source output for multiple operations

Correctly output libcurl source code that includes multiply operations
as specified by --next. Note that each operation evaluates to a single
curl_easy_perform() in source code form.

Also note that the output could be optimised a little so global config
options are only output once rather than per operation as is presently
the case.

10 years agotool_metalink.h: Fixed compilation warning
Steve Holme [Sat, 1 Mar 2014 20:11:28 +0000 (20:11 +0000)]
tool_metalink.h: Fixed compilation warning

warning: declaration of 'struct GlobalConfig' will not be visible
outside of this function

10 years agotool: Moved internal variable isatty to the global config
Steve Holme [Sat, 1 Mar 2014 13:49:28 +0000 (13:49 +0000)]
tool: Moved internal variable isatty to the global config

10 years agotool_operate.c: Fixed compilation error
Steve Holme [Sat, 1 Mar 2014 18:06:07 +0000 (18:06 +0000)]
tool_operate.c: Fixed compilation error

incompatible types - from 'OperationConfig *' to 'GlobalConfig *'

10 years agotool: Moved --libcurl to the global config
Steve Holme [Sat, 1 Mar 2014 13:38:00 +0000 (13:38 +0000)]
tool: Moved --libcurl to the global config

10 years agotool: Moved --progress-bar to the global config
Steve Holme [Sat, 1 Mar 2014 13:20:20 +0000 (13:20 +0000)]
tool: Moved --progress-bar to the global config

10 years agotool: Moved --stderr to the global config
Steve Holme [Sat, 1 Mar 2014 13:00:31 +0000 (13:00 +0000)]
tool: Moved --stderr to the global config

10 years agotransfer.c: Fixed non-HTTP2 builds from commit cde0cf7c5e
Steve Holme [Fri, 28 Feb 2014 22:59:10 +0000 (22:59 +0000)]
transfer.c: Fixed non-HTTP2 builds from commit cde0cf7c5e

10 years agoFix bug that HTTP/2 hangs if whole response body is read with headers
Tatsuhiro Tsujikawa [Wed, 26 Feb 2014 16:21:17 +0000 (01:21 +0900)]
Fix bug that HTTP/2 hangs if whole response body is read with headers

For HTTP/2, we may read up everything including responde body with
header fields in Curl_http_readwrite_headers. If no content-length is
provided, curl waits for the connection close, which we emulate it
using conn->proto.httpc.closed = TRUE. The thing is if we read
everything, then http2_recv won't be called and we cannot signal the
HTTP/2 stream has closed. As a workaround, we return nonzero from
data_pending to call http2_recv.

10 years agohttp2: build with current nghttp2 version
Daniel Stenberg [Fri, 28 Feb 2014 22:26:43 +0000 (23:26 +0100)]
http2: build with current nghttp2 version

nghttp2 has yet again extended its callback struct and this is an
attempt to make curl compile with nghttp2 from current git

10 years agotool_main: Fixed a memory leak on main_init error
Dan Fandrich [Fri, 28 Feb 2014 20:57:04 +0000 (21:57 +0100)]
tool_main: Fixed a memory leak on main_init error

10 years agotest96: Updated accordly for recent changes
Steve Holme [Fri, 28 Feb 2014 09:45:38 +0000 (09:45 +0000)]
test96: Updated accordly for recent changes

10 years agotool_cfgable: Code policing of structure pointers
Steve Holme [Thu, 27 Feb 2014 20:59:15 +0000 (20:59 +0000)]
tool_cfgable: Code policing of structure pointers

10 years agotool: Moved --trace and --verbose to the global config
Steve Holme [Thu, 27 Feb 2014 20:51:49 +0000 (20:51 +0000)]
tool: Moved --trace and --verbose to the global config

10 years agotool_main: Forgot to initialise the first operation's global pointer
Steve Holme [Thu, 27 Feb 2014 20:31:10 +0000 (20:31 +0000)]
tool_main: Forgot to initialise the first operation's global pointer

10 years agotool: Moved --silient to the global config
Steve Holme [Thu, 27 Feb 2014 20:21:23 +0000 (20:21 +0000)]
tool: Moved --silient to the global config

Other global options such as --libcurl, --trace and --verbose to
follow.

10 years agotool_cfgable: Added GlobalConfig pointer to OperationConfig
Steve Holme [Wed, 26 Feb 2014 21:02:53 +0000 (21:02 +0000)]
tool_cfgable: Added GlobalConfig pointer to OperationConfig

In order to ease the moving of global options such as the error stream,
updated the OperationConfig structure to point to the GlobalConfig.

10 years agotool: Added support to .curlrc for URL specific options
Steve Holme [Sun, 23 Feb 2014 18:01:36 +0000 (18:01 +0000)]
tool: Added support to .curlrc for URL specific options

In addition to adding support for URL specific options via the command
line with --next it is now possible to specify "next" in .curlrc.

10 years agotool: Reworked argument parsing to use --next/-:
Steve Holme [Sun, 23 Feb 2014 17:32:19 +0000 (17:32 +0000)]
tool: Reworked argument parsing to use --next/-:

Follow up to commit 1a9b58fcb2 to replace the : command line option
with --next and -:.

10 years agotool_getparam: Added initial support for --next/-:
Steve Holme [Sun, 23 Feb 2014 17:19:45 +0000 (17:19 +0000)]
tool_getparam: Added initial support for --next/-:

Added initial support for --next/-: which will be used to replace the
rather confusing : command line operation what was used for the URL
specific options prototype.

10 years agovalgrind.supp: tweaked a test 165 suppression
Dan Fandrich [Wed, 26 Feb 2014 07:25:47 +0000 (08:25 +0100)]
valgrind.supp: tweaked a test 165 suppression

A recent change seems to have slightly changed the call stack
produced by the gcc optimizer.

10 years agoMerge pull request #93 from d235j/darwinssl_ip_address_fix
nickzman [Tue, 25 Feb 2014 23:36:44 +0000 (17:36 -0600)]
Merge pull request #93 from d235j/darwinssl_ip_address_fix

darwinssl: don't omit CN verification when an IP address is used

10 years agoparse_args: fix a too long source code line
Daniel Stenberg [Tue, 25 Feb 2014 22:36:13 +0000 (23:36 +0100)]
parse_args: fix a too long source code line

10 years agoconfigure: Tiny fix to honor POSIX
naota [Sun, 23 Feb 2014 13:32:51 +0000 (22:32 +0900)]
configure: Tiny fix to honor POSIX

Change "==" to "=" to honor POSIX test construction.

10 years agotool_help: Moved --no-alpn and --no-npn to be listed alphabetically
Steve Holme [Sun, 23 Feb 2014 16:53:55 +0000 (16:53 +0000)]
tool_help: Moved --no-alpn and --no-npn to be listed alphabetically

...and added the HTTP suffix as these options are only used for HTTP2
based connections.

10 years agotool: Moved --showerror to the global config
Steve Holme [Sun, 23 Feb 2014 16:37:28 +0000 (16:37 +0000)]
tool: Moved --showerror to the global config

Other global options such as --libcurl, --trace and --verbose to
follow.

10 years agotool_getparam: Added global config to getparameter()
Steve Holme [Sun, 23 Feb 2014 16:04:39 +0000 (16:04 +0000)]
tool_getparam: Added global config to getparameter()

In preparation for parsing global options added the GlobalConfig
structure to the getparameter() function.

10 years agotool_getparam.h: Fixed compilation warning
Steve Holme [Tue, 25 Feb 2014 07:16:51 +0000 (07:16 +0000)]
tool_getparam.h: Fixed compilation warning

warning: declaration of 'struct GlobalConfig' will not be visible
outside of this function

10 years agoRELEASE-NOTES: Updated for 63fc8ee7
Marc Hoersken [Mon, 24 Feb 2014 21:28:56 +0000 (22:28 +0100)]
RELEASE-NOTES: Updated for 63fc8ee7

10 years agotool_cfgable: Added support for knowing the current operation
Steve Holme [Sun, 23 Feb 2014 15:30:24 +0000 (15:30 +0000)]
tool_cfgable: Added support for knowing the current operation

10 years agocurl_schannel.c: Updated copyright years
Marc Hoersken [Mon, 24 Feb 2014 21:10:54 +0000 (22:10 +0100)]
curl_schannel.c: Updated copyright years

10 years agowinssl: Enable hostname verification of IP address using SAN or CN
David Ryskalczyk [Sun, 23 Feb 2014 17:38:58 +0000 (18:38 +0100)]
winssl: Enable hostname verification of IP address using SAN or CN

Original commit message was:
 Don't omit CN verification in SChannel when an IP address is used.

Side-effect of this change:
 SChannel and CryptoAPI do not support the iPAddress subjectAltName
 according to RFC 2818. If present, SChannel will first compare the
 IP address to the dNSName subjectAltNames and then fallback to the
 most specific Common Name in the Subject field of the certificate.

 This means that after this change curl will not connect to SSL/TLS
 hosts as long as the IP address is not specified in the SAN or CN
 of the server certificate or the verifyhost option is disabled.

10 years agotool_operate: Moved easy handle cleanup into tool_main
Steve Holme [Sun, 23 Feb 2014 15:10:18 +0000 (15:10 +0000)]
tool_operate: Moved easy handle cleanup into tool_main

10 years agotool_hugehelp: partially reverted 24e22e10
Marc Hoersken [Mon, 24 Feb 2014 20:22:41 +0000 (21:22 +0100)]
tool_hugehelp: partially reverted 24e22e10

Compilation was not possible if manuel is disabled due this error:
 error: macro "hugehelp" passed 1 arguments, but takes just 0
  void hugehelp(void) {}

10 years agotool_main: Moved easy handle into global config structure
Steve Holme [Sun, 23 Feb 2014 14:32:22 +0000 (14:32 +0000)]
tool_main: Moved easy handle into global config structure

10 years agoDon't omit CN verification in DarwinSSL when an IP address is used.
David Ryskalczyk [Sun, 23 Feb 2014 15:35:30 +0000 (10:35 -0500)]
Don't omit CN verification in DarwinSSL when an IP address is used.

10 years agotool: Fixed line longer than 79 characters from commit 705a4cb549
Steve Holme [Sun, 23 Feb 2014 16:09:15 +0000 (16:09 +0000)]
tool: Fixed line longer than 79 characters from commit 705a4cb549

10 years agotool_main: Corrected typo from commit d6b9f054e9 in Symbian code
Steve Holme [Sun, 23 Feb 2014 13:49:46 +0000 (13:49 +0000)]
tool_main: Corrected typo from commit d6b9f054e9 in Symbian code

10 years agotool_main: Moved OperateConfig cleanup into main_free()
Steve Holme [Sun, 23 Feb 2014 13:44:59 +0000 (13:44 +0000)]
tool_main: Moved OperateConfig cleanup into main_free()

10 years agotool_main: Moved initial OperateConfig creation into main_init()
Steve Holme [Sun, 23 Feb 2014 13:34:29 +0000 (13:34 +0000)]
tool_main: Moved initial OperateConfig creation into main_init()

10 years agotool_cfgable: Added global config structure
Steve Holme [Sun, 23 Feb 2014 13:15:31 +0000 (13:15 +0000)]
tool_cfgable: Added global config structure

10 years agotool_cfgable: Renamed Configurable structure to OperationConfig
Steve Holme [Sun, 23 Feb 2014 12:59:59 +0000 (12:59 +0000)]
tool_cfgable: Renamed Configurable structure to OperationConfig

To allow for the addition of a global config structure and prevent
confusion between the two.

10 years agotool: Fixed incorrect return code with --version from commit c10bf9bb36
Steve Holme [Sun, 23 Feb 2014 12:10:42 +0000 (12:10 +0000)]
tool: Fixed incorrect return code with --version from commit c10bf9bb36

10 years agoRELEASE-NOTES: Synced with 8c80840d01
Steve Holme [Sun, 23 Feb 2014 11:24:46 +0000 (11:24 +0000)]
RELEASE-NOTES: Synced with 8c80840d01

10 years agotool_getparam: Moved tool_help() call into operate()
Steve Holme [Sun, 23 Feb 2014 10:58:56 +0000 (10:58 +0000)]
tool_getparam: Moved tool_help() call into operate()

10 years agotool_getparam: Moved hugehelp() call into operate()
Steve Holme [Sun, 23 Feb 2014 10:37:44 +0000 (10:37 +0000)]
tool_getparam: Moved hugehelp() call into operate()

10 years agotool_getparam: Moved tool_version_info() call into operate()
Steve Holme [Sun, 23 Feb 2014 10:16:36 +0000 (10:16 +0000)]
tool_getparam: Moved tool_version_info() call into operate()

10 years agotool_cfgable: Removed list_engine flag from config structure
Steve Holme [Sat, 22 Feb 2014 20:58:43 +0000 (20:58 +0000)]
tool_cfgable: Removed list_engine flag from config structure

In preparation for separating the global config options from the per
operation config options, reworked the list engines code to not use a
member variable in the Configurable structure.

10 years agotool_operate: Start to use CURLcode rather than int for return codes
Steve Holme [Sat, 22 Feb 2014 18:57:02 +0000 (18:57 +0000)]
tool_operate: Start to use CURLcode rather than int for return codes

To help assist with the detection of incorrect return codes, as per
commits ee23d13a7933b8960dc8 and aba98991a5, updated the operate
based functions to return CURLcode error codes.

10 years agotool: Fixed incorrect return code when setting HTTP request fails
Steve Holme [Sat, 22 Feb 2014 18:14:33 +0000 (18:14 +0000)]
tool: Fixed incorrect return code when setting HTTP request fails

During initialisation SetHTTPrequest() may fail and cURL would return
PARAM_BAD_USE, which is equivalent to CURLE_NOT_BUILT_IN in cURL error
terms.

Instead, return CURLE_FAILED_INIT as we do for other functions that may
fail during initialisation.

10 years agotool_getparam: Moved version information into separate function in tool_help
Steve Holme [Sat, 22 Feb 2014 17:45:38 +0000 (17:45 +0000)]
tool_getparam: Moved version information into separate function in tool_help

10 years agotool_operhlp.h: Fixed compilation warning
Steve Holme [Sat, 22 Feb 2014 17:09:43 +0000 (17:09 +0000)]
tool_operhlp.h: Fixed compilation warning

warning: 'struct Configurable' declared inside parameter list

10 years agotool_operhlp: Consolidated engine output code into tool_help
Steve Holme [Sat, 22 Feb 2014 16:21:53 +0000 (16:21 +0000)]
tool_operhlp: Consolidated engine output code into tool_help

10 years agotool_operate: Moved list engines into separate function in tool_help
Steve Holme [Sat, 22 Feb 2014 16:04:30 +0000 (16:04 +0000)]
tool_operate: Moved list engines into separate function in tool_help

10 years agoRELEASE-NOTES: added note about impact of changes to WinSSL defaults
Marc Hoersken [Sat, 22 Feb 2014 15:57:29 +0000 (16:57 +0100)]
RELEASE-NOTES: added note about impact of changes to WinSSL defaults

10 years agostunnel: regenerated self-signed test certificate with SHA1 hash
Marc Hoersken [Sat, 22 Feb 2014 15:48:15 +0000 (16:48 +0100)]
stunnel: regenerated self-signed test certificate with SHA1 hash

The previous test certificate contained a MD5 hash which is not
supported using TLSv1.2 with Schannel on Windows 7 or newer.

See the update to this blog post on IEInternals / MSDN:
http://blogs.msdn.com/b/ieinternals/archive/2011/03/25/
misbehaving-https-servers-impair-tls-1.1-and-tls-1.2.aspx

"Update: If the server negotiates a TLS1.2 connection with a
Windows 7 or 8 schannel.dll-using client application, and it
provides a certificate chain which uses the (weak) MD5 hash
algorithm, the client will abort the connection (TCP/IP FIN)
upon receipt of the certificate."

10 years agoeasy: Fixed a memory leak on OOM condition
Dan Fandrich [Wed, 19 Feb 2014 07:57:00 +0000 (08:57 +0100)]
easy: Fixed a memory leak on OOM condition

10 years agotool_paramhlp: Fixed compilation warnings
Steve Holme [Thu, 20 Feb 2014 23:18:48 +0000 (23:18 +0000)]
tool_paramhlp: Fixed compilation warnings

declaration of 'index' shadows a global declaration

10 years agolib1515.c: Fixed #include path in commit 647f83e809
Steve Holme [Wed, 19 Feb 2014 20:36:36 +0000 (20:36 +0000)]
lib1515.c: Fixed #include path in commit 647f83e809

10 years agotest1515: fix compilation with msvc
Maks Naumov [Tue, 18 Feb 2014 13:45:12 +0000 (15:45 +0200)]
test1515: fix compilation with msvc

... or any other systems lacking a native snprintf

10 years agoSFTP: skip reading the dir when NOBODY=1
Daniel Stenberg [Tue, 18 Feb 2014 10:21:13 +0000 (11:21 +0100)]
SFTP: skip reading the dir when NOBODY=1

When asking for an SFTP directory with NOBODY set, no directory contents
should be retrieved.

Bug: http://curl.haxx.se/mail/lib-2014-02/0155.html

10 years agoaxtls: comment the call ssl_read repeatedly loop
Dan Fandrich [Tue, 18 Feb 2014 20:14:09 +0000 (21:14 +0100)]
axtls: comment the call ssl_read repeatedly loop

10 years agocurl.1: update the description of --tlsv1
Kamil Dudka [Mon, 17 Feb 2014 15:55:10 +0000 (16:55 +0100)]
curl.1: update the description of --tlsv1

... and mention the --tlsv1.[0-2] options in the --tslv1 entry

Reported-by: Hubert Kario
10 years agocurl_version.3: recommend using curl_version_info() instead
Daniel Stenberg [Tue, 18 Feb 2014 07:59:56 +0000 (08:59 +0100)]
curl_version.3: recommend using curl_version_info() instead

10 years agocurl_version_info.3: added *HTTP2
Daniel Stenberg [Tue, 18 Feb 2014 07:59:38 +0000 (08:59 +0100)]
curl_version_info.3: added *HTTP2

... and edited language slightly

10 years agocurl_multi_assign.3: updated language
Daniel Stenberg [Tue, 18 Feb 2014 07:51:03 +0000 (08:51 +0100)]
curl_multi_assign.3: updated language

10 years agolibcurl.3: edited slightly to improve readability
Daniel Stenberg [Tue, 18 Feb 2014 07:46:46 +0000 (08:46 +0100)]
libcurl.3: edited slightly to improve readability

10 years agocurl_easy_perform.3: extended and clarified
Daniel Stenberg [Tue, 18 Feb 2014 07:30:59 +0000 (08:30 +0100)]
curl_easy_perform.3: extended and clarified

10 years agocurl_multi_add_handle.3: clarify multi vs easy use
Daniel Stenberg [Tue, 18 Feb 2014 07:29:39 +0000 (08:29 +0100)]
curl_multi_add_handle.3: clarify multi vs easy use

it is only WHILE added to a multi handle that it can't be used with the
easy interface

10 years agohttp2: Support HTTP POST/PUT
Tatsuhiro Tsujikawa [Fri, 14 Feb 2014 13:02:44 +0000 (22:02 +0900)]
http2: Support HTTP POST/PUT

This patch enables HTTP POST/PUT in HTTP2.
We disabled Expect header field and  chunked transfer encoding
since HTTP2 forbids them.
In HTTP1, Curl sends small upload data with request headers, but
HTTP2 requires upload data must be in DATA frame separately.
So we added some conditionals to achieve this.

10 years agoRELEASE-NOTES: synced with 854aca5420f
Daniel Stenberg [Mon, 17 Feb 2014 10:16:41 +0000 (11:16 +0100)]
RELEASE-NOTES: synced with 854aca5420f

10 years agomulti: ignore sigpipe internally
Daniel Stenberg [Mon, 17 Feb 2014 09:35:21 +0000 (10:35 +0100)]
multi: ignore sigpipe internally

When the multi API is used we must also ignore SIGPIPE signals when
caused by things we do, like they can easily be generated by OpenSSL.

10 years agotests: Made the crypto test feature usable
Dan Fandrich [Mon, 17 Feb 2014 08:14:44 +0000 (09:14 +0100)]
tests: Made the crypto test feature usable

This feature specifies the availability of cryptographic
authentication, which can be disabled at compile-time

10 years agoconfigure: Fix the --disable-crypto-auth option
Dan Fandrich [Mon, 17 Feb 2014 08:40:49 +0000 (09:40 +0100)]
configure: Fix the --disable-crypto-auth option

It now disables NTLM and GSS authentication methods, and produces
compilable code when SSL is enabled.

10 years agocurl_multi_setopt.3: clarify CURLMOPT_MAXCONNECTS
Daniel Stenberg [Mon, 17 Feb 2014 08:27:14 +0000 (09:27 +0100)]
curl_multi_setopt.3: clarify CURLMOPT_MAXCONNECTS

10 years agoConnectionDone: default maxconnects to 4 x number of easy handles
Shao Shuchao [Mon, 17 Feb 2014 05:44:00 +0000 (13:44 +0800)]
ConnectionDone: default maxconnects to 4 x number of easy handles

... as documented!

10 years agoexamples: remove all use of CURLM_CALL_MULTI_PERFORM
Daniel Stenberg [Mon, 17 Feb 2014 07:25:39 +0000 (08:25 +0100)]
examples: remove all use of CURLM_CALL_MULTI_PERFORM

... since it is never returned since a long while back.

10 years agocurl_easy_setopt.3: Add another non-matching hostname
Colin Hogben [Fri, 14 Feb 2014 10:41:12 +0000 (10:41 +0000)]
curl_easy_setopt.3: Add another non-matching hostname

For the avoidance of doubt, show a domain which contains the no-proxy
pattern but not at the top level.

10 years agoaxtls: bump copyright year
Daniel Stenberg [Sun, 16 Feb 2014 22:31:47 +0000 (23:31 +0100)]
axtls: bump copyright year

10 years agoaxtls: call ssl_read repeatedly
Fabian Frank [Fri, 14 Feb 2014 09:20:20 +0000 (01:20 -0800)]
axtls: call ssl_read repeatedly

Perform more work in between sleeps. This is work around the
fact that axtls does not expose any knowledge about when work needs
to be performed. Depending on connection and how often perform is
being called this can save ~25% of time on SSL handshakes (measured
on 20ms latency connection calling perform roughly every 10ms).

10 years agourl_easy_setopt.3: Add undocumented values of curl_infotype
Yehezkel Horowitz [Sun, 16 Feb 2014 22:27:16 +0000 (23:27 +0100)]
url_easy_setopt.3: Add undocumented values of curl_infotype

... for debug function

10 years agoConnectionExists: re-use connections better
Daniel Stenberg [Sun, 16 Feb 2014 13:07:56 +0000 (14:07 +0100)]
ConnectionExists: re-use connections better

When allowing NTLM, the re-use connection logic was too focused on
finding an existing NTLM connection to use and didn't properly allow
re-use of other ones. This made the logic not re-use perfectly re-usable
connections.

Added test case 1418 and 1419 to verify.

Regression brought in 8ae35102c (curl 7.35.0)

Reported-by: Jeff King
Bug: http://thread.gmane.org/gmane.comp.version-control.git/242213

10 years agotool_paramhlp: Added URL index to password prompt for multiple operations
Steve Holme [Sun, 16 Feb 2014 11:10:09 +0000 (11:10 +0000)]
tool_paramhlp: Added URL index to password prompt for multiple operations

10 years agosockfilt.c: add undefs which are required after 6239146e
Marc Hoersken [Sun, 16 Feb 2014 10:52:00 +0000 (11:52 +0100)]
sockfilt.c: add undefs which are required after 6239146e

10 years agowarnless: Updated copyright year for recent changes
Steve Holme [Sun, 16 Feb 2014 10:28:48 +0000 (10:28 +0000)]
warnless: Updated copyright year for recent changes

10 years agowarnless: add wrapper function for read and write on Windows
Marc Hoersken [Sun, 16 Feb 2014 10:03:22 +0000 (11:03 +0100)]
warnless: add wrapper function for read and write on Windows

10 years agoexamples: Added IMAP LSUB example
Steve Holme [Sat, 15 Feb 2014 23:33:09 +0000 (23:33 +0000)]
examples: Added IMAP LSUB example