Re: git: 0c895b819c3f - main - net/http_ping: Deprecate and set expiration date to 2024-02-29

From: Daniel Engberg <daniel.engberg.lists_at_pyret.net>
Date: Tue, 23 Jan 2024 06:01:44 UTC
On 2024-01-22T21:51:30.000+01:00, Hiroki Sato <hrs@FreeBSD.org> wrote:

> Daniel Engberg <diizzy@FreeBSD.org> wrote
> 
>   in <202401221958.40MJwjFC061115@gitrepo.freebsd.org>:
> 
> di> The branch main has been updated by diizzy:
> 
> di>
> 
> di> URL: https://cgit.FreeBSD.org/ports/commit/?id=0c895b819c3f189a44cb30344b85968ef5b08c10
> 
> di>
> 
> di> commit 0c895b819c3f189a44cb30344b85968ef5b08c10
> 
> di> Author:     Daniel Engberg <diizzy@FreeBSD.org>
> 
> di> AuthorDate: 2024-01-22 19:51:22 +0000
> 
> di> Commit:     Daniel Engberg <diizzy@FreeBSD.org>
> 
> di> CommitDate: 2024-01-22 19:58:36 +0000
> 
> di>
> 
> di>     net/http_ping: Deprecate and set expiration date to 2024-02-29
> 
> di>
> 
> di>     Only supports HTTP/1.0 which is considered deprecated and being
> 
> di>     phased out.
> 
> di>
> 
> di>     If the functionality is still of interest
> 
> di>     https://github.com/fever-ch/http-ping appears to be a good replacement
> 
> di>
> 
> di>     PR:             276186
> 
> di>     Approved by:    portmgr (maintainer timeout, 2+ weeks)
> 
> I do not understand why a tool with no build or functionality issue
> 
> should be removed because it only supports HTTP/1.0.  Do we have a
> 
> policy to remove ports based on a lack of modern protocol support or
> 
> fewer users?
> 
> -- Hiroki

Hi,

There are functionality issues when HTTP 1.0 isn't supported?

Quick example:

http_ping https://chat.openai.com/

http_ping: SSL connection failed - -1

002041AE453D0000:error:0A000410:SSL routines:ssl3_read_bytes:sslv3
alert handshake
failure:/usr/src/crypto/openssl/ssl/record/rec_layer_s3.c:1586:SSL
alert number 40

While on Windows for comparison and what I would call expected results
using http-ping.

HTTP-PING https://chat.openai.com/ GET

   ─→     server advertised HTTP/3 endpoint, using HTTP/3

       1: HTTP/3.0, 104.18.37.228:443, code=307, size=11 bytes,
time=183.2 ms

       2: HTTP/3.0, 104.18.37.228:443, code=307, size=11 bytes,
time=186.2 ms

       3: HTTP/3.0, 104.18.37.228:443, code=307, size=11 bytes,
time=193.5 ms

       4: HTTP/3.0, 104.18.37.228:443, code=307, size=11 bytes,
time=187.0 ms

--- https://chat.openai.com/ ping statistics ---

4 requests sent, 4 answers received, 0.0% loss

round-trip min/avg/max/stddev = 183.215/187.493/193.535/3.764 ms

Best regards,

Daniel