Changeset 03ed863 for benchmark/io
- Timestamp:
- Jul 20, 2020, 1:19:13 PM (5 years ago)
- Branches:
- ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- 3f1d9b5
- Parents:
- 289a21c
- Location:
- benchmark/io/http
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified benchmark/io/http/options.cfa ¶
r289a21c r03ed863 25 25 { // socket 26 26 8080, // port 27 10 // backlog 27 10, // backlog 28 1024 // buflen 28 29 }, 29 30 … … 54 55 {'b', "accept-backlog", "Maximum number of pending accepts", options.socket.backlog}, 55 56 {'B', "channel-size", "Maximum number of accepted connection pending", options.clopts.chan_size}, 57 {'r', "request_len", "Maximum number of bytes in the http request, requests with more data will be answered with Http Code 414", options.socket.buflen}, 56 58 {'S', "seed", "seed to use for hashing", options.file_cache.hash_seed }, 57 59 {'C', "cache-size", "Size of the cache to use, if set to small, will uses closes power of 2", options.file_cache.size }, -
TabularUnified benchmark/io/http/options.hfa ¶
r289a21c r03ed863 17 17 int port; 18 18 int backlog; 19 int buflen; 19 20 } socket; 20 21 -
TabularUnified benchmark/io/http/worker.cfa ¶
r289a21c r03ed863 46 46 47 47 // Read the http request 48 size_t len = 1024;48 size_t len = options.socket.buflen; 49 49 char buffer[len]; 50 50 printf("Reading request\n");
Note: See TracChangeset
for help on using the changeset viewer.