Ignore:
Timestamp:
Feb 19, 2021, 1:48:14 PM (10 months ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
arm-eh, jacob/cs343-translation, master, new-ast-unique-expr
Children:
d60d30e
Parents:
78da4ab
Message:

Fix httpforall after changes to I/O

File:
1 edited

Legend:

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

    r78da4ab r4f762d3  
    3535        for() {
    3636                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 );
    3938                if(fd < 0) {
    4039                        if( errno == ECONNABORTED ) break;
     
    4241                        abort( "accept error: (%d) %s\n", (int)errno, strerror(errno) );
    4342                }
     43                if(this.done) break;
    4444
    4545                if( options.log ) sout | "=== New connection" | fd | "" | ", waiting for requests ===";
     
    5555                        char buffer[len];
    5656                        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);
    5858
    5959                        // if we are done, break out of the loop
Note: See TracChangeset for help on using the changeset viewer.