Skip to content

Commit 4952102

Browse files
author
bluestar
authored
Update http_server.c
1 parent 4957623 commit 4952102

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

examples/http_server/http_server.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@
6767
#include "ans_errno.h"
6868

6969

70-
#define MAX_FLOW_NUM 200000
7170
#define BUFFER_SIZE 5000
7271
#define MAX_EVENTS 512
7372
#define MAX_CPUS 8
@@ -227,10 +226,6 @@ int RunServerThread()
227226
while (1) {
228227
int c = anssock_accept(server_sockfd, NULL, NULL);
229228
if (c >= 0) {
230-
if (c >= MAX_FLOW_NUM) {
231-
printf("Invalid socket id %d.\n", c);
232-
exit(-1);
233-
}
234229
struct epoll_event ev;
235230
//accept connection and wait EPOLLIN EVENT
236231
ev.events = EPOLLIN | EPOLLET;

0 commit comments

Comments
 (0)