Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • benchmark/io/http/worker.cfa

    r3e417bf r857a1c6  
    1818void ?{}( Worker & this ) {
    1919        size_t cli = rand() % options.clopts.cltr_cnt;
    20         ((thread&)this){ "Server Worker Thread", *options.clopts.instance[cli], 64000 };
     20        ((thread&)this){ "Server Worker Thread", *options.clopts.instance[cli], 512000 };
    2121        options.clopts.thrd_cnt[cli]++;
    2222        this.pipe[0] = -1;
     
    122122                        }
    123123
     124                        // Send the header
     125                        int ret = answer_header(fd, count);
     126                        if( ret == -ECONNRESET ) break REQUEST;
     127
    124128                        // Send the desired file
    125                         int ret = answer_sendfile( this.pipe, fd, ans_fd, count);
     129                        ret = sendfile( this.pipe, fd, ans_fd, count);
    126130                        if( ret == -ECONNRESET ) break REQUEST;
    127131
     
    130134
    131135                if( options.log ) sout | "=== Connection closed ===";
     136                close(fd);
    132137                continue CONNECTION;
    133138        }
Note: See TracChangeset for help on using the changeset viewer.