Changes in benchmark/io/http/worker.cfa [3e417bf:857a1c6]
- File:
-
- 1 edited
-
benchmark/io/http/worker.cfa (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
benchmark/io/http/worker.cfa
r3e417bf r857a1c6 18 18 void ?{}( Worker & this ) { 19 19 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 }; 21 21 options.clopts.thrd_cnt[cli]++; 22 22 this.pipe[0] = -1; … … 122 122 } 123 123 124 // Send the header 125 int ret = answer_header(fd, count); 126 if( ret == -ECONNRESET ) break REQUEST; 127 124 128 // Send the desired file 125 int ret = answer_sendfile( this.pipe, fd, ans_fd, count);129 ret = sendfile( this.pipe, fd, ans_fd, count); 126 130 if( ret == -ECONNRESET ) break REQUEST; 127 131 … … 130 134 131 135 if( options.log ) sout | "=== Connection closed ==="; 136 close(fd); 132 137 continue CONNECTION; 133 138 }
Note:
See TracChangeset
for help on using the changeset viewer.