Changeset 11ec078


Ignore:
Timestamp:
2012-09-22T12:44:47Z (8 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
9c77fbf, a07a8c2
Parents:
d0752e8
Message:

Since I can't figure out where the stalls are coming from at this point, at
least have a work-around for it.

After hitting the Twitter timer a few times while a previous fetch still
seems to be running, close the connection. Auto-reconnect will do the rest.

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • lib/http_client.c

    rd0752e8 r11ec078  
    7373                printf( "About to send HTTP request:\n%s\n", req->request );
    7474       
    75         return( req );
     75        return req;
    7676}
    7777
  • protocols/twitter/twitter_lib.c

    rd0752e8 r11ec078  
    735735
    736736        if (td->flags & TWITTER_DOING_TIMELINE) {
    737                 return;
     737                if (++td->http_fails >= 5) {
     738                        imcb_error(ic, "Fetch timeout (%d)", td->flags);
     739                        imc_logout(ic, TRUE);
     740                }
    738741        }
    739742
Note: See TracChangeset for help on using the changeset viewer.