Changes in benchmark/io/http/socket.cfa [7f0ac12:86c12d65]
- File:
-
- 1 edited
-
benchmark/io/http/socket.cfa (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
benchmark/io/http/socket.cfa
r7f0ac12 r86c12d65 26 26 27 27 int 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); 31 29 if(sockfd < 0) { 32 30 abort( "socket error: (%d) %s\n", (int)errno, strerror(errno) ); 33 31 } 34 32 35 if(options.socket. reuseport) {33 if(options.socket.onereuse || options.socket.manyreuse) { 36 34 int value = 1; 37 35 // if (setsockopt(fd, SOL_SOCKET, SO_REUSEADDR, (const void*)&on, sizeof(on)))
Note:
See TracChangeset
for help on using the changeset viewer.