Lines Matching refs:num_handles
97 int num_handles = 0;
133 easy_init(easy[num_handles]);
135 if(num_handles % 3 == 2) {
137 easy_setopt(easy[num_handles], CURLOPT_HTTPAUTH, CURLAUTH_NTLM);
141 easy_setopt(easy[num_handles], CURLOPT_HTTPAUTH, CURLAUTH_BASIC);
143 easy_setopt(easy[num_handles], CURLOPT_FRESH_CONNECT, 1L);
144 easy_setopt(easy[num_handles], CURLOPT_URL, full_url);
145 easy_setopt(easy[num_handles], CURLOPT_VERBOSE, 1L);
146 easy_setopt(easy[num_handles], CURLOPT_HTTPGET, 1L);
147 easy_setopt(easy[num_handles], CURLOPT_USERPWD, "testuser:testpass");
148 easy_setopt(easy[num_handles], CURLOPT_WRITEFUNCTION, callback);
149 easy_setopt(easy[num_handles], CURLOPT_WRITEDATA, easy + num_handles);
150 easy_setopt(easy[num_handles], CURLOPT_HEADER, 1L);
152 multi_add_handle(multi, easy[num_handles]);
153 num_handles += 1;
181 state = num_handles < MAX_EASY_HANDLES ? ReadyForNewHandle
191 fprintf(stderr, "%s:%d num_handles %d timeout %ld running %d\n",
192 __FILE__, __LINE__, num_handles, timeout, running);
211 if(!running && num_handles == MAX_EASY_HANDLES) {