Ignore:
Timestamp:
Jul 17, 2020, 5:39:26 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:
e95a117
Parents:
0d52c6f
Message:

Implemented more options and moved them to their own file

File:
1 edited

Legend:

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

    r0d52c6f r2ecbd7b  
    2626//=============================================================================================
    2727void ?{}( Worker & this ) {
    28         ((thread&)this){ "Server Worker Thread", *options.the_cluster };
     28        ((thread&)this){ "Server Worker Thread", *options.clopts.instance };
    2929        int ret = pipe(this.pipe);
    3030        if( ret < 0 ) { abort( "pipe error: (%d) %s\n", (int)errno, strerror(errno) ); }
     
    5656                        // If this wasn't a request retrun 400
    5757                        if( code != OK200 ) {
    58                                 printf("Invalid Request\n");
     58                                printf("Invalid Request : %d\n", code_val(code));
    5959                                answer_error(fd, code);
    6060                                continue REQUEST;
    6161                        }
    6262
    63                         printf("Request for file %.*s\n", name_size, file);
     63                        printf("Request for file %.*s\n", (int)name_size, file);
    6464
    6565                        // Get the fd from the file cache
     
    9090//=============================================================================================
    9191void ?{}( Acceptor & this, int sockfd, struct sockaddr * addr, socklen_t * addrlen, int flags ) {
    92         ((thread&)this){ "Acceptor Thread", *options.the_cluster };
     92        ((thread&)this){ "Acceptor Thread", *options.clopts.instance };
    9393        this.sockfd  = sockfd;
    9494        this.addr    = addr;
Note: See TracChangeset for help on using the changeset viewer.