~ubuntu-branches/ubuntu/maverick/curl/maverick

« back to all changes in this revision

Viewing changes to tests/libtest/lib540.c

  • Committer: Bazaar Package Importer
  • Author(s): Kees Cook
  • Date: 2009-12-11 19:33:21 UTC
  • mfrom: (3.4.2 squeeze) (40.1.2 curl)
  • Revision ID: james.westby@ubuntu.com-20091211193321-tenukopudyznzbjj
* Merge with Debian testing.  Remaining changes:
  - Keep build deps in main:
    - Drop build dependencies: stunnel, libdb4.6-dev, libssh2-1-dev
    - Add build-dependency on openssh-server
    - Drop libssh2-1-dev from libcurl4-openssl-dev's Depends.

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
 *                            | (__| |_| |  _ <| |___
6
6
 *                             \___|\___/|_| \_\_____|
7
7
 *
8
 
 * $Id: lib540.c,v 1.7 2008-09-20 04:26:57 yangtse Exp $
 
8
 * $Id: lib540.c,v 1.8 2009-10-10 12:29:32 yangtse Exp $
9
9
 *
10
10
 * This is the 'proxyauth.c' test app posted by Shmulik Regev on the libcurl
11
11
 * mailing list on 10 Jul 2007, converted to a test case.
44
44
                struct curl_slist *headers)
45
45
{
46
46
  CURLMsg *msg;
 
47
  CURLMcode code;
47
48
  long L;
48
49
  int M, Q, U = -1;
49
50
  fd_set R, W, E;
52
53
  init(cm, url, userpwd, headers);
53
54
 
54
55
  while (U) {
55
 
    while (CURLM_CALL_MULTI_PERFORM == curl_multi_perform(cm, &U));
 
56
 
 
57
    do {
 
58
      code = curl_multi_perform(cm, &U);
 
59
    } while (code == CURLM_CALL_MULTI_PERFORM);
56
60
 
57
61
    if (U) {
58
62
      FD_ZERO(&R);