~ubuntu-branches/ubuntu/raring/curl/raring-updates

« back to all changes in this revision

Viewing changes to tests/libtest/lib503.c

  • Committer: Package Import Robot
  • Author(s): Alessandro Ghedini
  • Date: 2011-11-13 21:07:32 UTC
  • mto: (3.6.1 experimental) (1.3.1)
  • mto: This revision was merged to the branch mainline in revision 55.
  • Revision ID: package-import@ubuntu.com-20111113210732-bk5n25x2tu7aplur
Tags: upstream-7.22.0
ImportĀ upstreamĀ versionĀ 7.22.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
 ***************************************************************************/
22
22
#include "test.h"
23
23
 
24
 
#include <sys/types.h>
25
 
 
26
24
#include "testutil.h"
27
25
#include "warnless.h"
28
26
#include "memdebug.h"
103
101
    mp_timedout = FALSE;
104
102
    mp_start = tutil_tvnow();
105
103
 
106
 
    while (res == CURLM_CALL_MULTI_PERFORM) {
107
 
      res = (int)curl_multi_perform(m, &running);
108
 
      if (tutil_tvdiff(tutil_tvnow(), mp_start) >
109
 
          MULTI_PERFORM_HANG_TIMEOUT) {
110
 
        mp_timedout = TRUE;
111
 
        break;
112
 
      }
113
 
      if (running <= 0) {
114
 
        done = TRUE;
115
 
        break;
116
 
      }
117
 
    }
 
104
    res = (int)curl_multi_perform(m, &running);
 
105
    if (tutil_tvdiff(tutil_tvnow(), mp_start) >
 
106
        MULTI_PERFORM_HANG_TIMEOUT) {
 
107
      mp_timedout = TRUE;
 
108
      break;
 
109
    }
 
110
    if (running <= 0) {
 
111
      done = TRUE;
 
112
      break;
 
113
    }
 
114
 
118
115
    if (mp_timedout || done)
119
116
      break;
120
117
 
140
137
      break;
141
138
    }
142
139
 
143
 
    res = CURLM_CALL_MULTI_PERFORM;
144
140
  }
145
141
 
146
142
  if (ml_timedout || mp_timedout) {