~ubuntu-branches/ubuntu/vivid/curl/vivid

« back to all changes in this revision

Viewing changes to tests/libtest/lib530.c

  • Committer: Package Import Robot
  • Author(s): Sebastien Bacher
  • Date: 2013-05-07 12:16:37 UTC
  • mfrom: (3.4.37 sid)
  • Revision ID: package-import@ubuntu.com-20130507121637-9t3i98qgsyr9dw5d
Tags: 7.30.0-1ubuntu1
* Resynchronize on Debian. Remaining changes:
  - Drop dependencies not in main:
    + Build-Depends: Drop stunnel4 and libssh2-1-dev.
    + Drop libssh2-1-dev from binary package Depends.
  - Add new libcurl3-udeb package.
  - Add new curl-udeb package.
* Add warning to debian/patches/series.

Show diffs side-by-side

added added

removed removed

Lines of Context:
37
37
  CURLM *m = NULL;
38
38
  int i;
39
39
  char target_url[256];
 
40
  int handles_added = 0;
40
41
 
41
42
  for(i=0; i < NUM_HANDLES; i++)
42
43
    curl[i] = NULL;
59
60
    easy_setopt(curl[i], CURLOPT_VERBOSE, 1L);
60
61
    /* include headers */
61
62
    easy_setopt(curl[i], CURLOPT_HEADER, 1L);
62
 
    /* add handle to multi */
63
 
    multi_add_handle(m, curl[i]);
64
63
  }
65
64
 
 
65
  /* Add the first handle to multi. We do this to let libcurl detect
 
66
     that the server can do pipelining. The rest of the handles will be
 
67
     added later. */
 
68
  multi_add_handle(m, curl[handles_added++]);
 
69
 
66
70
  multi_setopt(m, CURLMOPT_PIPELINING, 1L);
67
71
 
68
72
  fprintf(stderr, "Start at URL 0\n");
79
83
 
80
84
    abort_on_test_timeout();
81
85
 
82
 
    if(!running)
 
86
    if(!running && handles_added >= NUM_HANDLES)
83
87
      break; /* done */
84
88
 
 
89
    /* Add the rest of the handles now that the first handle has sent the
 
90
       request. */
 
91
    while(handles_added < NUM_HANDLES)
 
92
      multi_add_handle(m, curl[handles_added++]);
 
93
 
85
94
    FD_ZERO(&rd);
86
95
    FD_ZERO(&wr);
87
96
    FD_ZERO(&exc);