Skip to content

Commit b98013d

Browse files
authored
Merge pull request #9 from steven1lung/patch-1
Fix typo
2 parents 41965b9 + 7b8d81c commit b98013d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

htstress.c

+5-5
Original file line numberDiff line numberDiff line change
@@ -165,8 +165,8 @@ static void init_conn(int efd, struct econn *ec)
165165
* error, -1 is returned, and errno is set to indicate the error.
166166
*/
167167
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.*/
170170
} while (ret && errno == EAGAIN);
171171

172172
if (ret && errno != EINPROGRESS) {
@@ -192,7 +192,7 @@ static void init_conn(int efd, struct econn *ec)
192192
*
193193
* one worker manage concurrency number connections.
194194
* htstress creates thread per worker, so the num_threads also means how many
195-
* worker we have.
195+
* workers we have.
196196
*/
197197
static void *worker(void *arg)
198198
{
@@ -354,7 +354,7 @@ static void print_usage()
354354
printf(
355355
"Usage: htstress [options] [http://]hostname[:port]/path\n"
356356
"Options:\n"
357-
" -n, --number total number of requests (0 for inifinite, "
357+
" -n, --number total number of requests (0 for infinite, "
358358
"Ctrl-C to abort)\n"
359359
" -c, --concurrency number of concurrent connections\n"
360360
" -t, --threads number of threads (set this to the number of "
@@ -559,7 +559,7 @@ int main(int argc, char *argv[])
559559
" [%d%%]\n"
560560
"bad requests: %" PRIu64
561561
" [%d%%]\n"
562-
"socker errors: %" PRIu64
562+
"socket errors: %" PRIu64
563563
" [%d%%]\n"
564564
"seconds: %.3f\n"
565565
"requests/sec: %.3f\n"

0 commit comments

Comments
 (0)