Ignore:
File:
1 edited

Legend:

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

    r7f0ac12 r86c12d65  
    2626
    2727int listener(struct sockaddr_in & address, int addrlen) {
    28         int type = SOCK_STREAM;
    29         if(options.socket.reuseport) type |= SOCK_NONBLOCK;
    30         int sockfd = socket(AF_INET, type, 0);
     28        int sockfd = socket(AF_INET, SOCK_STREAM, 0);
    3129        if(sockfd < 0) {
    3230                abort( "socket error: (%d) %s\n", (int)errno, strerror(errno) );
    3331        }
    3432
    35         if(options.socket.reuseport) {
     33        if(options.socket.onereuse || options.socket.manyreuse) {
    3634                int value = 1;
    3735                // if (setsockopt(fd, SOL_SOCKET, SO_REUSEADDR, (const void*)&on, sizeof(on)))
Note: See TracChangeset for help on using the changeset viewer.