Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • benchmark/io/http/http_ring.cpp

    rc235179 reeb4866  
    2020                socklen_t *addrlen;
    2121                int flags;
    22                 unsigned cnt;
    2322        } acpt;
    2423
     
    434433        // Accept our first connection
    435434        // May not take effect until io_uring_submit_and_wait
    436         for(unsigned i = 0; i < opt.acpt.cnt; i++) {
    437                 connection::accept(ring, opt);
    438         }
     435        connection::accept(ring, opt);
    439436
    440437        int reset = 1;       // Counter to print stats once in a while
     
    531528        unsigned entries = 256;     // number of entries per ring/kernel thread
    532529        unsigned backlog = 262144;  // backlog argument to listen
    533         unsigned preaccept = 1;     // start by accepting X per threads
    534530        bool attach = false;        // Whether or not to attach all the rings
    535531        bool sqpoll = false;        // Whether or not to use SQ Polling
     
    538534        // Arguments Parsing
    539535        int c;
    540         while ((c = getopt (argc, argv, "t:p:e:b:c:aS")) != -1) {
     536        while ((c = getopt (argc, argv, "t:p:e:b:aS")) != -1) {
    541537                switch (c)
    542538                {
     
    552548                case 'b':
    553549                        backlog = atoi(optarg);
    554                         break;
    555                 case 'c':
    556                         preaccept = atoi(optarg);
    557550                        break;
    558551                case 'a':
     
    688681                thrd_opts[i].acpt.addrlen = (socklen_t*)&addrlen;
    689682                thrd_opts[i].acpt.flags   = 0;
    690                 thrd_opts[i].acpt.cnt     = preaccept;
    691683                thrd_opts[i].endfd        = efd;
    692684                thrd_opts[i].ring         = &thrd_rings[i].storage;
Note: See TracChangeset for help on using the changeset viewer.