Changeset 4570

Show
Ignore:
Timestamp:
02/10/07 01:49:49 (2 years ago)
Author:
morris
Message:

Sync with wired

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trackerd/trunk/trackerd/commands.c

    r4428 r4570  
    9191 
    9292        while(client->state <= WT_CLIENT_STATE_SAID_HELLO) { 
    93                 if(!pool) 
    94                         pool = wi_pool_init(wi_pool_alloc()); 
    95                  
    9693                if(client->buffer_offset == 0) { 
    9794                        do { 
     
    128125                wt_parse_command(string); 
    129126                 
    130                 if(++i % 10 == 0) { 
    131                         wi_release(pool); 
    132                         pool = NULL; 
    133                 } 
     127                if(++i % 10 == 0) 
     128                        wi_pool_drain(pool); 
    134129        } 
    135130 
  • trackerd/trunk/trackerd/main.c

    r4429 r4570  
    231231        wi_log_startup = false; 
    232232         
    233         wi_release(pool); 
    234         pool = wi_pool_init(wi_pool_alloc()); 
     233        /* clean up pool after startup */ 
     234        wi_pool_drain(pool); 
    235235         
    236236        /* enter the signal handling thread in the main thread */ 
     
    391391 
    392392        while(wt_running) { 
    393                 if(!pool) 
    394                         pool = wi_pool_init(wi_pool_alloc()); 
    395                  
    396393                signal = wt_wait_signals(); 
    397394                 
     
    419416                } 
    420417                 
    421                 if(++i % 10 == 0) { 
    422                         wi_release(pool); 
    423                         pool = NULL; 
    424                 } 
     418                if(++i % 10 == 0) 
     419                        wi_pool_drain(pool); 
    425420        } 
    426421         
  • trackerd/trunk/trackerd/tracker.c

    r4428 r4570  
    214214 
    215215        while(wt_running) { 
    216                 if(!pool) 
    217                         pool = wi_pool_init(wi_pool_alloc()); 
    218  
    219216                ip = NULL; 
    220217 
     
    247244 
    248245next: 
    249                 if(++i % 100 == 0) { 
    250                         wi_release(pool); 
    251                         pool = NULL; 
    252                 } 
     246                if(++i % 100 == 0) 
     247                        wi_pool_drain(pool); 
    253248        } 
    254249         
     
    272267 
    273268        while(wt_running) { 
    274                 if(!pool) 
    275                         pool = wi_pool_init(wi_pool_alloc()); 
    276  
    277269                command         = NULL; 
    278270                arguments       = NULL; 
     
    340332 
    341333next: 
    342                 if(++i % 100 == 0) { 
    343                         wi_release(pool); 
    344                         pool = NULL; 
    345                 } 
     334                if(++i % 100 == 0) 
     335                        wi_pool_drain(pool); 
    346336        } 
    347337