Lines Matching refs:num_handles
104 int num_handles = 0; in test() local
146 easy_init(easy[num_handles]); in test()
148 if(num_handles % 3 == 2) { in test()
150 easy_setopt(easy[num_handles], CURLOPT_HTTPAUTH, CURLAUTH_NTLM); in test()
154 easy_setopt(easy[num_handles], CURLOPT_HTTPAUTH, CURLAUTH_BASIC); in test()
156 easy_setopt(easy[num_handles], CURLOPT_FRESH_CONNECT, 1L); in test()
157 easy_setopt(easy[num_handles], CURLOPT_URL, full_url); in test()
158 easy_setopt(easy[num_handles], CURLOPT_VERBOSE, 1L); in test()
159 easy_setopt(easy[num_handles], CURLOPT_HTTPGET, 1L); in test()
160 easy_setopt(easy[num_handles], CURLOPT_USERPWD, "testuser:testpass"); in test()
161 easy_setopt(easy[num_handles], CURLOPT_WRITEFUNCTION, callback); in test()
162 easy_setopt(easy[num_handles], CURLOPT_WRITEDATA, easy + num_handles); in test()
163 easy_setopt(easy[num_handles], CURLOPT_HEADER, 1L); in test()
165 multi_add_handle(multi, easy[num_handles]); in test()
166 num_handles += 1; in test()
196 for(j = 0; j < num_handles; ++j) { in test()
213 if(sockets[num_handles-1] != CURL_SOCKET_BAD) { in test()
216 assert(curfd != sockets[num_handles-1]); in test()
218 num_handles-1, (int)sockets[num_handles-1], (int)curfd); in test()
223 sockets[num_handles-1] = curfd; in test()
235 state = num_handles < MAX_EASY_HANDLES ? ReadyForNewHandle in test()
244 __FILE__, __LINE__, num_handles, timeout); in test()
258 if(!running && num_handles == MAX_EASY_HANDLES) { in test()