Ignore:
Timestamp:
Jul 20, 2020, 10:23:32 AM (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:
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/main.cfa

    r2ecbd7b re95a117  
    100100                                {
    101101                                        Acceptor acceptor = { server_fd, (struct sockaddr *)&address, (socklen_t*)&addrlen, 0 };
     102
     103                                        char buffer[128];
     104                                        while(!feof(stdin)) {
     105                                                fgets(buffer, 128, stdin);
     106                                        }
     107
     108                                        printf("Shutting Down\n");
    102109                                }
    103                                 printf("Shutting Down\n");
     110                                printf("Acceptor Closed\n");
    104111
    105112                                // Clean-up the workers
     
    108115                                }
    109116                        }
     117                        printf("Workers Closed\n");
    110118                }
    111119        }
Note: See TracChangeset for help on using the changeset viewer.