Ignore:
Timestamp:
Jan 8, 2021, 5:20:16 PM (4 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast-unique-expr, pthread-emulation, qualifiedEnum
Children:
35fd2c4
Parents:
390fb02
Message:

Protocol now returns date in answer header

File:
1 edited

Legend:

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

    r390fb02 rc3ee5f3  
    4646}
    4747
     48extern void init_protocol(void);
     49extern void deinit_protocol(void);
     50
    4851//=============================================================================================
    4952// Main
     
    5659        //===================
    5760        // Open Files
    58         printf("Filling cache from %s\n", path);
    59         fill_cache( path );
     61        if (FileExperiment == options.experiment.type) {
     62                printf("Filling cache from %s\n", path);
     63                fill_cache( path );
     64        }
    6065
    6166        //===================
     
    7984                ret = bind( server_fd, (struct sockaddr *)&address, sizeof(address) );
    8085                if(ret < 0) {
    81                         if(errno == 98) {
     86                        if(errno == EADDRINUSE) {
    8287                                if(waited == 0) {
    8388                                        printf("Waiting for port\n");
     
    108113                #endif
    109114                options.clopts.instance = &cl;
     115
     116                init_protocol();
    110117
    111118                int pipe_cnt = options.clopts.nworkers * 2;
     
    162169                }
    163170                free(fds);
     171
     172                deinit_protocol();
    164173        }
    165174
Note: See TracChangeset for help on using the changeset viewer.