@@ -165,8 +165,8 @@ static void init_conn(int efd, struct econn *ec)
165
165
* error, -1 is returned, and errno is set to indicate the error.
166
166
*/
167
167
ret = connect (ec -> fd , (struct sockaddr * ) & sss , sssln );
168
- /* set socket to O_NONBLOCK, connect function never blocks, so checkin
169
- * EAGIN is needed.*/
168
+ /* set socket to O_NONBLOCK, connect function never blocks, so checking
169
+ * EAGAIN is needed.*/
170
170
} while (ret && errno == EAGAIN );
171
171
172
172
if (ret && errno != EINPROGRESS ) {
@@ -192,7 +192,7 @@ static void init_conn(int efd, struct econn *ec)
192
192
*
193
193
* one worker manage concurrency number connections.
194
194
* htstress creates thread per worker, so the num_threads also means how many
195
- * worker we have.
195
+ * workers we have.
196
196
*/
197
197
static void * worker (void * arg )
198
198
{
@@ -354,7 +354,7 @@ static void print_usage()
354
354
printf (
355
355
"Usage: htstress [options] [http://]hostname[:port]/path\n"
356
356
"Options:\n"
357
- " -n, --number total number of requests (0 for inifinite , "
357
+ " -n, --number total number of requests (0 for infinite , "
358
358
"Ctrl-C to abort)\n"
359
359
" -c, --concurrency number of concurrent connections\n"
360
360
" -t, --threads number of threads (set this to the number of "
@@ -559,7 +559,7 @@ int main(int argc, char *argv[])
559
559
" [%d%%]\n"
560
560
"bad requests: %" PRIu64
561
561
" [%d%%]\n"
562
- "socker errors: %" PRIu64
562
+ "socket errors: %" PRIu64
563
563
" [%d%%]\n"
564
564
"seconds: %.3f\n"
565
565
"requests/sec: %.3f\n"
0 commit comments