mirror of
https://github.com/curl/curl.git
synced 2026-06-04 20:04:14 +03:00
parent
be6c4ee7fa
commit
89683e05b9
7 changed files with 21 additions and 21 deletions
|
|
@ -42,7 +42,7 @@
|
|||
* curl_multi "hiper" API.
|
||||
*
|
||||
* Thus, you can try a single URL:
|
||||
* % echo http://www.yahoo.com > hiper.fifo
|
||||
* % echo http://www.example.com > hiper.fifo
|
||||
*
|
||||
* Or a whole bunch of them:
|
||||
* % cat my-url-list > hiper.fifo
|
||||
|
|
|
|||
|
|
@ -45,7 +45,7 @@
|
|||
* curl_multi "hiper" API.
|
||||
*
|
||||
* Thus, you can try a single URL:
|
||||
* % echo http://www.yahoo.com > hiper.fifo
|
||||
* % echo http://www.example.com > hiper.fifo
|
||||
*
|
||||
* Or a whole bunch of them:
|
||||
* % cat my-url-list > hiper.fifo
|
||||
|
|
|
|||
|
|
@ -42,7 +42,7 @@
|
|||
* curl_multi "hiper" API.
|
||||
*
|
||||
* Thus, you can try a single URL:
|
||||
* % echo http://www.yahoo.com > hiper.fifo
|
||||
* % echo http://www.example.com > hiper.fifo
|
||||
*
|
||||
* Or a whole bunch of them:
|
||||
* % cat my-url-list > hiper.fifo
|
||||
|
|
|
|||
|
|
@ -42,7 +42,7 @@
|
|||
* curl_multi "hiper" API.
|
||||
*
|
||||
* Thus, you can try a single URL:
|
||||
* % echo http://www.yahoo.com > hiper.fifo
|
||||
* % echo http://www.example.com > hiper.fifo
|
||||
*
|
||||
* Or a whole bunch of them:
|
||||
* % cat my-url-list > hiper.fifo
|
||||
|
|
|
|||
|
|
@ -43,7 +43,7 @@ CURLINFO_USED_PROXY
|
|||
# 1 - the non-proxy using URL
|
||||
# 2 - the CURLOPT_RESOLVE string to change IP for the name
|
||||
<command>
|
||||
http://%HOSTIP:%HTTPPORT goingdirect.com:%HTTPPORT goingdirect.com:%HTTPPORT:%HOSTIP
|
||||
http://%HOSTIP:%HTTPPORT goingdirect.test:%HTTPPORT goingdirect.test:%HTTPPORT:%HOSTIP
|
||||
</command>
|
||||
<features>
|
||||
proxy
|
||||
|
|
@ -53,13 +53,13 @@ proxy
|
|||
# Verify data after the test has been "shot"
|
||||
<verify>
|
||||
<protocol crlf="headers">
|
||||
GET http://usingproxy.com/ HTTP/1.1
|
||||
Host: usingproxy.com
|
||||
GET http://usingproxy.test/ HTTP/1.1
|
||||
Host: usingproxy.test
|
||||
Accept: */*
|
||||
Proxy-Connection: Keep-Alive
|
||||
|
||||
GET / HTTP/1.1
|
||||
Host: goingdirect.com:%HTTPPORT
|
||||
Host: goingdirect.test:%HTTPPORT
|
||||
Accept: */*
|
||||
|
||||
</protocol>
|
||||
|
|
|
|||
|
|
@ -37,7 +37,7 @@ static CURLcode test_lib536(const char *URL)
|
|||
CURL *curl;
|
||||
struct curl_slist *host = NULL;
|
||||
|
||||
static const char *url_with_proxy = "http://usingproxy.com/";
|
||||
static const char *url_with_proxy = "http://usingproxy.test/";
|
||||
const char *url_without_proxy = libtest_arg2;
|
||||
|
||||
if(curl_global_init(CURL_GLOBAL_ALL) != CURLE_OK) {
|
||||
|
|
@ -59,7 +59,7 @@ static CURLcode test_lib536(const char *URL)
|
|||
test_setopt(curl, CURLOPT_RESOLVE, host);
|
||||
test_setopt(curl, CURLOPT_PROXY, URL);
|
||||
test_setopt(curl, CURLOPT_URL, url_with_proxy);
|
||||
test_setopt(curl, CURLOPT_NOPROXY, "goingdirect.com");
|
||||
test_setopt(curl, CURLOPT_NOPROXY, "goingdirect.test");
|
||||
test_setopt(curl, CURLOPT_VERBOSE, 1L);
|
||||
|
||||
result = curl_easy_perform(curl);
|
||||
|
|
|
|||
|
|
@ -359,7 +359,7 @@ static void test_connect(CURL *easy, const struct test_case *tc)
|
|||
* Max Duration checks needs to be conservative since CI jobs are not
|
||||
* as sharp.
|
||||
*/
|
||||
#define TURL "http://test.com:123"
|
||||
#define TURL "http://abc.test:123"
|
||||
|
||||
#define R_FAIL CURLE_COULDNT_CONNECT
|
||||
/* timeout values accounting for low cpu resources in CI */
|
||||
|
|
@ -375,46 +375,46 @@ static CURLcode test_unit2600(const char *arg)
|
|||
static const struct test_case TEST_CASES[] = {
|
||||
/* TIMEOUT_MS, FAIL_MS CREATED DURATION Result, HE_PREF */
|
||||
/* CNCT HE v4 v6 v4 v6 MIN MAX MAX_CONCURRENT */
|
||||
{ 1, TURL, "test.com:123:192.0.2.1", CURL_IPRESOLVE_WHATEVER,
|
||||
{ 1, TURL, "abc.test:123:192.0.2.1", CURL_IPRESOLVE_WHATEVER,
|
||||
CNCT_TMOT, 150, 250, 250, 1, 0, 200, TC_TMOT, R_FAIL, NULL,
|
||||
1 },
|
||||
/* 1 ipv4, fails after ~200ms, reports COULDNT_CONNECT */
|
||||
{ 2, TURL, "test.com:123:192.0.2.1,192.0.2.2", CURL_IPRESOLVE_WHATEVER,
|
||||
{ 2, TURL, "abc.test:123:192.0.2.1,192.0.2.2", CURL_IPRESOLVE_WHATEVER,
|
||||
CNCT_TMOT, 150, 250, 250, 2, 0, 400, TC_TMOT, R_FAIL, NULL,
|
||||
2 },
|
||||
/* 2 ipv4, fails after ~400ms, reports COULDNT_CONNECT */
|
||||
#ifdef USE_IPV6
|
||||
{ 3, TURL, "test.com:123:::1", CURL_IPRESOLVE_WHATEVER,
|
||||
{ 3, TURL, "abc.test:123:::1", CURL_IPRESOLVE_WHATEVER,
|
||||
CNCT_TMOT, 150, 250, 250, 0, 1, 200, TC_TMOT, R_FAIL, NULL,
|
||||
1 },
|
||||
/* 1 ipv6, fails after ~200ms, reports COULDNT_CONNECT */
|
||||
{ 4, TURL, "test.com:123:::1,::2", CURL_IPRESOLVE_WHATEVER,
|
||||
{ 4, TURL, "abc.test:123:::1,::2", CURL_IPRESOLVE_WHATEVER,
|
||||
CNCT_TMOT, 150, 250, 250, 0, 2, 400, TC_TMOT, R_FAIL, NULL,
|
||||
2 },
|
||||
/* 2 ipv6, fails after ~400ms, reports COULDNT_CONNECT */
|
||||
{ 5, TURL, "test.com:123:192.0.2.1,::1", CURL_IPRESOLVE_WHATEVER,
|
||||
{ 5, TURL, "abc.test:123:192.0.2.1,::1", CURL_IPRESOLVE_WHATEVER,
|
||||
CNCT_TMOT, 150, 250, 250, 1, 1, 350, TC_TMOT, R_FAIL, "v6",
|
||||
2 },
|
||||
/* mixed ip4+6, v6 always first, v4 kicks in on HE, fails after ~350ms */
|
||||
{ 6, TURL, "test.com:123:::1,192.0.2.1", CURL_IPRESOLVE_WHATEVER,
|
||||
{ 6, TURL, "abc.test:123:::1,192.0.2.1", CURL_IPRESOLVE_WHATEVER,
|
||||
CNCT_TMOT, 150, 250, 250, 1, 1, 350, TC_TMOT, R_FAIL, "v6",
|
||||
2 },
|
||||
/* mixed ip6+4, v6 starts, v4 never starts due to high HE, TIMEOUT */
|
||||
{ 7, TURL, "test.com:123:192.0.2.1,::1", CURL_IPRESOLVE_V4,
|
||||
{ 7, TURL, "abc.test:123:192.0.2.1,::1", CURL_IPRESOLVE_V4,
|
||||
CNCT_TMOT, 150, 500, 500, 1, 0, 400, TC_TMOT, R_FAIL, NULL,
|
||||
1 },
|
||||
/* mixed ip4+6, but only use v4, check it uses full connect timeout,
|
||||
although another address of the 'wrong' family is available */
|
||||
{ 8, TURL, "test.com:123:::1,192.0.2.1", CURL_IPRESOLVE_V6,
|
||||
{ 8, TURL, "abc.test:123:::1,192.0.2.1", CURL_IPRESOLVE_V6,
|
||||
CNCT_TMOT, 150, 500, 500, 0, 1, 400, TC_TMOT, R_FAIL, NULL,
|
||||
1 },
|
||||
/* mixed ip4+6, but only use v6, check it uses full connect timeout,
|
||||
although another address of the 'wrong' family is available */
|
||||
{ 9, TURL, "test.com:123:::1,192.0.2.1,::2,::3", CURL_IPRESOLVE_WHATEVER,
|
||||
{ 9, TURL, "abc.test:123:::1,192.0.2.1,::2,::3", CURL_IPRESOLVE_WHATEVER,
|
||||
CNCT_TMOT, 50, 400, 400, 1, 3, 550, TC_TMOT, R_FAIL, NULL,
|
||||
4 },
|
||||
/* 1 v4, 3 v6, fails after (3*HE)+400ms, ~550ms, COULDNT_CONNECT */
|
||||
{ 10, TURL, "test.com:123:::1,192.0.2.1,::2,::3,::4,::5,::6,::7,::8",
|
||||
{ 10, TURL, "abc.test:123:::1,192.0.2.1,::2,::3,::4,::5,::6,::7,::8",
|
||||
CURL_IPRESOLVE_WHATEVER,
|
||||
CNCT_TMOT, 20, 500, 500, 1, 8, 550, TC_TMOT, R_FAIL, NULL,
|
||||
6 },
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue