Changeset 03ed863


Ignore:
Timestamp:
Jul 20, 2020, 1:19:13 PM (4 years ago)
Author:
Thierry Delisle <tdelisle@…>
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
Message:

Http request buffer size is now configurable

Location:
benchmark/io/http
Files:
3 edited

Legend:

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

    r289a21c r03ed863  
    2525        { // socket
    2626                8080, // port
    27                 10    // backlog
     27                10,   // backlog
     28                1024  // buflen
    2829        },
    2930
     
    5455                {'b', "accept-backlog", "Maximum number of pending accepts", options.socket.backlog},
    5556                {'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},
    5658                {'S', "seed",           "seed to use for hashing", options.file_cache.hash_seed },
    5759                {'C', "cache-size",     "Size of the cache to use, if set to small, will uses closes power of 2", options.file_cache.size },
  • benchmark/io/http/options.hfa

    r289a21c r03ed863  
    1717                int port;
    1818                int backlog;
     19                int buflen;
    1920        } socket;
    2021
  • benchmark/io/http/worker.cfa

    r289a21c r03ed863  
    4646
    4747                        // Read the http request
    48                         size_t len = 1024;
     48                        size_t len = options.socket.buflen;
    4949                        char buffer[len];
    5050                        printf("Reading request\n");
Note: See TracChangeset for help on using the changeset viewer.