misc clean-up
Folkert van Heusden
7 years ago
73 | 73 |
|
74 | 74 |
void version(void)
|
75 | 75 |
{
|
76 | |
fprintf(stderr, gettext("HTTPing v" VERSION ", (C) 2003-2015 folkert@vanheusden.com\n"));
|
|
76 |
fprintf(stderr, gettext("HTTPing v" VERSION ", (C) 2003-2016 folkert@vanheusden.com\n"));
|
77 | 77 |
#ifndef NO_SSL
|
78 | 78 |
fprintf(stderr, gettext(" * SSL support included (-l)\n"));
|
79 | 79 |
#endif
|
0 | |
.\" Copyright Folkert van Heusden, 2003-2015
|
|
0 |
.\" Copyright Folkert van Heusden, 2003-2016
|
1 | 1 |
.\"
|
2 | 2 |
.\" This file may be copied under the conditions described
|
3 | 3 |
.\" in the GNU GENERAL PUBLIC LICENSE, version 2
|
4 | 4 |
.\" that can be found on the website of the free software
|
5 | 5 |
.\" foundation.
|
6 | 6 |
.\"
|
7 | |
.TH HTTPING 1 2015-03 "httping"
|
|
7 |
.TH HTTPING 1 2016-09 "httping"
|
8 | 8 |
.SH NAME
|
9 | 9 |
httping - meten van de latency en doorvoorsnelheid van een http server
|
10 | 10 |
.SH SAMENVATTING
|
0 | |
.\" Copyright Folkert van Heusden, 2003-2015
|
|
0 |
.\" Copyright Folkert van Heusden, 2003-2016
|
1 | 1 |
.\"
|
2 | 2 |
.\" This file may be copied under the conditions described
|
3 | 3 |
.\" in the GNU GENERAL PUBLIC LICENSE, version 2
|
4 | 4 |
.\" that can be found on the website of the free software
|
5 | 5 |
.\" foundation.
|
6 | 6 |
.\"
|
7 | |
.TH HTTPING 1 2015-07 "httping"
|
|
7 |
.TH HTTPING 1 2016-09 "httping"
|
8 | 8 |
.SH ИМЯ
|
9 | 9 |
httping - измеряет задержку и пропускную способность веб-сервера
|
10 | 10 |
.SH СИНТАКСИС
|
0 | |
.\" Copyright Folkert van Heusden, 2003-2015
|
|
0 |
.\" Copyright Folkert van Heusden, 2003-2016
|
1 | 1 |
.\"
|
2 | 2 |
.\" This file may be copied under the conditions described
|
3 | 3 |
.\" in the GNU GENERAL PUBLIC LICENSE, version 2
|
4 | 4 |
.\" that can be found on the website of the free software
|
5 | 5 |
.\" foundation.
|
6 | 6 |
.\"
|
7 | |
.TH HTTPING 1 2015-07 "httping"
|
|
7 |
.TH HTTPING 1 2016-09 "httping"
|
8 | 8 |
.SH NAME
|
9 | 9 |
httping - measure the latency and throughput of a webserver
|
10 | 10 |
.SH SYNOPSIS
|
0 | |
HTTPing is (C) 2003-2015 by folkert@vanheusden.com
|
|
0 |
HTTPing is (C) 2003-2016 by folkert@vanheusden.com
|
1 | 1 |
|
2 | 2 |
The AGPL version 3 applies to this program. That document can be found
|
3 | 3 |
on the website of the free software foundation.
|
352 | 352 |
|
353 | 353 |
request_headers_len += snprintf(&request_headers[request_headers_len], sizeof request_headers - request_headers_len, "\r\n");
|
354 | 354 |
|
355 | |
if ((rc = connect_to(fd, ai, timeout, tfo, request_headers, request_headers_len, &rh_sent)) < 0)
|
|
355 |
if ((rc = connect_to(fd, ai, timeout, tfo, request_headers, request_headers_len, &rh_sent)) == -1)
|
356 | 356 |
return rc;
|
357 | 357 |
|
358 | 358 |
if (!rh_sent)
|
0 | 0 |
# Dutch translations for HTTPing package.
|
1 | |
# Copyright (C) 2015 folkert van heusden
|
|
1 |
# Copyright (C) 2016 folkert van heusden
|
2 | 2 |
# This file is distributed under the same license as the HTTPing package.
|
3 | |
# folkert van heusden <mail@vanheusden.com>, 2015.
|
|
3 |
# folkert van heusden <mail@vanheusden.com>, 2016.
|
4 | 4 |
# Translated by Joris Zwart - http://joriszwart.nl/
|
5 | 5 |
#
|
6 | 6 |
msgid ""
|
0 | 0 |
# Russian translation for HTTPing package.
|
1 | |
# Copyright (C) 2015 folkert van heusden
|
|
1 |
# Copyright (C) 2016 folkert van heusden
|
2 | 2 |
# This file is distributed under the same license as the HTTPing package.
|
3 | |
# folkert van heusden <mail@vanheusden.com>, 2015.
|
|
3 |
# folkert van heusden <mail@vanheusden.com>, 2016.
|
4 | 4 |
# Translated by Way, No - http://noway421.github.io/
|
5 | 5 |
#
|
6 | 6 |
msgid ""
|
22 | 22 |
unsigned char io_buffer[256] = { 0 };
|
23 | 23 |
int io_len = 0, rc = -1;
|
24 | 24 |
|
25 | |
if ((rc = connect_to(fd, ai, timeout, NULL, NULL, 0, NULL)) < 0)
|
|
25 |
if ((rc = connect_to(fd, ai, timeout, NULL, NULL, 0, NULL)) == -1)
|
26 | 26 |
return rc;
|
27 | 27 |
|
28 | 28 |
/* inform socks server about the auth. methods we support */
|
35 | 35 |
{
|
36 | 36 |
int flag = 1;
|
37 | 37 |
|
38 | |
if (setsockopt(fd, IPPROTO_TCP, TCP_NODELAY, (char *)&flag, sizeof(int)) < 0)
|
|
38 |
if (setsockopt(fd, IPPROTO_TCP, TCP_NODELAY, (char *)&flag, sizeof(int)) == -1)
|
39 | 39 |
{
|
40 | 40 |
set_error(gettext("could not set TCP_NODELAY on socket (%s)"), strerror(errno));
|
41 | 41 |
return -1;
|
11 | 11 |
int sfd = 0;
|
12 | 12 |
int qlen = 5;
|
13 | 13 |
|
14 | |
if ((sfd = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP)) < 0) {
|
|
14 |
if ((sfd = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP)) == -1) {
|
15 | 15 |
fprintf(stderr, "socket(): %s\n", strerror(errno));
|
16 | 16 |
exit(EXIT_FAILURE);
|
17 | 17 |
}
|
18 | 18 |
|
19 | 19 |
#ifdef TCP_FASTOPEN
|
20 | |
if (setsockopt(sfd, SOL_TCP, TCP_FASTOPEN, &qlen, sizeof(qlen)) < 0) {
|
|
20 |
if (setsockopt(sfd, SOL_TCP, TCP_FASTOPEN, &qlen, sizeof(qlen)) == -1) {
|
21 | 21 |
fprintf(stderr, "setsockopt(): %s\n", strerror(errno));
|
22 | 22 |
exit(EXIT_FAILURE);
|
23 | 23 |
}
|
0 | |
VERSION=2.4
|
|
0 |
VERSION=2.5
|