cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: curl-7.10.4-pre4

From: Ralph Mitchell <rmitchell_at_eds.com>
Date: Wed, 19 Mar 2003 01:35:25 -0600

Ralph Mitchell wrote:

> Daniel Stenberg wrote:
>
> > On Tue, 18 Mar 2003, Ralph Mitchell wrote:
> >
> > > and test 503 fails with this in log/stderr503:
> > >
> > > URL: http://127.0.0.1:8433/503
> >
> > This looks like either another problem with the test suite or a possible
> > libcurl problem.
> >
> > If you got some more time to help out, then try filling the
> > tests/libtest/lib503.c source file with fprintf(stderr, "reach point 432\n");
> > style outputs so that we can figure out where/why it returns/exits from that
> > function.
>
> I'll try beating on this one a bit tonight.

Here's there story so far - I put fprintf's into lib503.c so that line 36 and on now
look like this :

        m = curl_multi_init();

        res = curl_multi_add_handle(m, c);
        fprintf (stderr, "chk 1: res=%d\n", res);
        while(!done) {
          fd_set rd, wr, exc;
          int max_fd;

          fprintf (stderr, "chk 2\n");
          while (res == CURLM_CALL_MULTI_PERFORM) {
            fprintf (stderr, "chk 3\n");
            res = curl_multi_perform(m, &running);
            fprintf (stderr, "chk 4: res=%d, running=%d\n", res, running);
            if (running <= 0) {
              done = TRUE;
          break;
        }
      }
      if(done)
        break;

What I see in log/stderr503 is this:

    URL: http://127.0.0.1:8433/503
    chk 1: res=-1
    chk 2
    chk 3
    chk 4: res=-1, running=1
    chk 3
    chk 4: res=-1, running=1
    chk 3
    chk 4: res=0, running=0
    chk 8

"chk 8" is right before the final curl_multi_remove_handle. There are other
fprintf's in the body of the proc, but they aren't being hit, because when it gets
"running=0" it sets "done=TRUE", then breaks out of the nested "while"s and exits.

log/stdout503 is empty.

Ralph

-------------------------------------------------------
This SF.net email is sponsored by: Does your code think in ink?
You could win a Tablet PC. Get a free Tablet PC hat just for playing.
What are you waiting for?
http://ads.sourceforge.net/cgi-bin/redirect.pl?micr5043en
Received on 2003-03-19