Lines Matching +full:- +full:- +full:connect +full:- +full:timeout
21 * SPDX-License-Identifier: curl
27 #include "connect.h"
52 that we aren't zero-based */
58 #define TIMEOUTS(x,y) testdata->set.timeout = x; \
59 testdata->set.connecttimeout = y
65 * 0/1 during connect
89 {BASE + 10, 0, 10000, 8000, FALSE, -1, "timeout is -1, expired"},
90 {BASE + 12, 0, 10000, 8000, FALSE, -2000, "-2000, overdue 2 seconds"},
95 {BASE + 8, 0, 10000, 8000, TRUE, -1, "timeout is -1, expired"},
96 {BASE + 10, 0, 10000, 8000, TRUE, -2000, "-2000, overdue 2 seconds"},
98 /* no connect timeout set, not connecting */
101 {BASE + 10, 0, 10000, 0, FALSE, -1, "timeout is -1, expired"},
102 {BASE + 12, 0, 10000, 0, FALSE, -2000, "-2000, overdue 2 seconds"},
104 /* no connect timeout set, connecting */
107 {BASE + 10, 0, 10000, 0, TRUE, -1, "timeout is -1, expired"},
108 {BASE + 12, 0, 10000, 0, TRUE, -2000, "-2000, overdue 2 seconds"},
110 /* only connect timeout set, not connecting */
111 {BASE + 4, 0, 0, 10000, FALSE, 0, "no timeout active"},
112 {BASE + 4, 990000, 0, 10000, FALSE, 0, "no timeout active"},
113 {BASE + 10, 0, 0, 10000, FALSE, 0, "no timeout active"},
114 {BASE + 12, 0, 0, 10000, FALSE, 0, "no timeout active"},
116 /* only connect timeout set, connecting */
119 {BASE + 10, 0, 0, 10000, TRUE, -1, "timeout is -1, expired"},
120 {BASE + 12, 0, 0, 10000, TRUE, -2000, "-2000, overdue 2 seconds"},
122 /* no timeout set, not connecting */
123 {BASE + 4, 0, 0, 0, FALSE, 0, "no timeout active"},
124 {BASE + 4, 990000, 0, 0, FALSE, 0, "no timeout active"},
125 {BASE + 10, 0, 0, 0, FALSE, 0, "no timeout active"},
126 {BASE + 12, 0, 0, 0, FALSE, 0, "no timeout active"},
128 /* no timeout set, connecting */
129 {BASE + 4, 0, 0, 0, TRUE, 296000, "no timeout active"},
130 {BASE + 4, 990000, 0, 0, TRUE, 295010, "no timeout active"},
131 {BASE + 10, 0, 0, 0, TRUE, 290000, "no timeout active"},
132 {BASE + 12, 0, 0, 0, TRUE, 288000, "no timeout active"},
134 /* both timeouts set, connecting, connect timeout the longer one */
140 testdata->progress.t_startsingle.tv_sec = BASE;
141 testdata->progress.t_startsingle.tv_usec = 0;
142 testdata->progress.t_startop.tv_sec = BASE;
143 testdata->progress.t_startop.tv_usec = 0;
146 timediff_t timeout; variable
149 timeout = Curl_timeleft(testdata, &now, run[i].connecting);
150 if(timeout != run[i].result)