Skip to content
url.c 182 KiB
Newer Older
       */
      if(!data->multi) {
        result = Curl_reconnect_request(connp);

          /* ... finally back to actually retry the DO phase */
          conn = *connp; /* re-assign conn since Curl_reconnect_request
                            creates a new connection */
          result = conn->handler->do_it(conn, done);
    if(!result && *done)
      /* do_complete must be called after the protocol-specific DO function */
/*
 * Curl_do_more() is called during the DO_MORE multi state. It is basically a
 * second stage DO state which (wrongly) was introduced to support FTP's
 * second connection.
 *
 * TODO: A future libcurl should be able to work away this state.
 *
 * 'complete' can return 0 for incomplete, 1 for done and -1 for go back to
 * DOING state there's more work to do!
CURLcode Curl_do_more(struct connectdata *conn, int *complete)
    result = conn->handler->do_more(conn, complete);
  if(!result && (*complete == 1))
    /* do_complete must be called after the protocol-specific DO function */
    do_complete(conn);