Changeset 4f762d3 for benchmark/io/http/worker.cfa
- Timestamp:
- Feb 19, 2021, 1:48:14 PM (2 years ago)
- Branches:
- arm-eh, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- d60d30e
- Parents:
- 78da4ab
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
benchmark/io/http/worker.cfa
r78da4ab r4f762d3 35 35 for() { 36 36 if( options.log ) sout | "=== Accepting connection ==="; 37 int fd = cfa_accept4( this.[sockfd, addr, addrlen, flags], 0, -1`s, &this.cancel, 0p ); 38 // int fd = accept4( this.[sockfd, addr, addrlen, flags] ); 37 int fd = cfa_accept4( this.[sockfd, addr, addrlen, flags], 0 ); 39 38 if(fd < 0) { 40 39 if( errno == ECONNABORTED ) break; … … 42 41 abort( "accept error: (%d) %s\n", (int)errno, strerror(errno) ); 43 42 } 43 if(this.done) break; 44 44 45 45 if( options.log ) sout | "=== New connection" | fd | "" | ", waiting for requests ==="; … … 55 55 char buffer[len]; 56 56 if( options.log ) sout | "=== Reading request ==="; 57 [code, closed, file, name_size] = http_read(fd, buffer, len , &this.cancel);57 [code, closed, file, name_size] = http_read(fd, buffer, len); 58 58 59 59 // if we are done, break out of the loop
Note: See TracChangeset
for help on using the changeset viewer.