@@ -111,7 +111,8 @@ static const struct option long_options[] = {
111
111
{"number" , 1 , NULL , 'n' }, {"concurrency" , 1 , NULL , 'c' },
112
112
{"threads" , 0 , NULL , 't' }, {"udaddr" , 1 , NULL , 'u' },
113
113
{"host" , 1 , NULL , 'h' }, {"debug" , 0 , NULL , 'd' },
114
- {"help" , 0 , NULL , '%' }, {NULL , 0 , NULL , 0 }};
114
+ {"help" , 0 , NULL , '%' }, {NULL , 0 , NULL , 0 },
115
+ };
115
116
116
117
static void sigint_handler (int arg )
117
118
{
@@ -135,8 +136,7 @@ static void end_time()
135
136
}
136
137
}
137
138
138
- /*
139
- * init_conn - initialize new econn or reset closed econn, then put into the
139
+ /* init_conn - initialize new econn or reset closed econn, then put into the
140
140
* epoll fd.
141
141
* @efd: epoll fd
142
142
* @ec: empty or closed econn
@@ -158,8 +158,7 @@ static void init_conn(int efd, struct econn *ec)
158
158
fcntl (ec -> fd , F_SETFL , O_NONBLOCK );
159
159
160
160
do {
161
- /*
162
- * not accept(server), so it's not conn fd(server side) but client fd.
161
+ /* not accept(server), so it's not conn fd(server side) but client fd.
163
162
*
164
163
* If the connection or binding succeeds, zero is returned. On
165
164
* error, -1 is returned, and errno is set to indicate the error.
@@ -186,8 +185,7 @@ static void init_conn(int efd, struct econn *ec)
186
185
}
187
186
}
188
187
189
- /*
190
- * worker - hold epoll logic to handle http request and response.
188
+ /* worker - hold epoll logic to handle http request and response.
191
189
* @arg: no use
192
190
*
193
191
* one worker manage concurrency number connections.
0 commit comments