Changeset 2ecbd7b for benchmark/io/http/worker.cfa
- Timestamp:
- Jul 17, 2020, 5:39:26 PM (3 years ago)
- Branches:
- ADT, arm-eh, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- e95a117
- Parents:
- 0d52c6f
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
benchmark/io/http/worker.cfa
r0d52c6f r2ecbd7b 26 26 //============================================================================================= 27 27 void ?{}( Worker & this ) { 28 ((thread&)this){ "Server Worker Thread", *options. the_cluster};28 ((thread&)this){ "Server Worker Thread", *options.clopts.instance }; 29 29 int ret = pipe(this.pipe); 30 30 if( ret < 0 ) { abort( "pipe error: (%d) %s\n", (int)errno, strerror(errno) ); } … … 56 56 // If this wasn't a request retrun 400 57 57 if( code != OK200 ) { 58 printf("Invalid Request \n");58 printf("Invalid Request : %d\n", code_val(code)); 59 59 answer_error(fd, code); 60 60 continue REQUEST; 61 61 } 62 62 63 printf("Request for file %.*s\n", name_size, file);63 printf("Request for file %.*s\n", (int)name_size, file); 64 64 65 65 // Get the fd from the file cache … … 90 90 //============================================================================================= 91 91 void ?{}( 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 }; 93 93 this.sockfd = sockfd; 94 94 this.addr = addr;
Note: See TracChangeset
for help on using the changeset viewer.