Ignore:
Timestamp:
Jul 20, 2020, 10:23:32 AM (3 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
arm-eh, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
Children:
289a21c
Parents:
2ecbd7b
Message:

Fixed handling of closed connections.
Started work on cleanly closing server

File:
1 edited

Legend:

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

    r2ecbd7b re95a117  
    7575        for() {
    7676                int ret = cfa_read(fd, it, count);
     77                if(ret == 0 ) return [OK200, true, 0p, 0];
    7778                if(ret < 0 ) {
    78                         if( errno ) return [OK200, true, 0p, 0];
    7979                        if( errno == EAGAIN || errno == EWOULDBLOCK) continue READ;
    8080                        abort( "read error: (%d) %s\n", (int)errno, strerror(errno) );
Note: See TracChangeset for help on using the changeset viewer.