Cannot fetch FreeBSD ports repository anymore

From: Matthias Fechner <idefix_at_fechner.net>
Date: Wed, 11 Jan 2023 06:17:13 UTC
Dear all,

if I try to fetch the FreeBSD repository using https I always get:
❯ g fetch -afpt
error: RPC failed; HTTP 504 curl 22 The requested URL returned error: 504
fatal: expected 'packfile'

The part in the config:
[remote "freebsd"]
         fetch = +refs/notes/*:refs/notes/*
         url = https://git.freebsd.org/ports.git
         fetch = +refs/heads/*:refs/remotes/freebsd/*
         pushurl = git@gitrepo.freebsd.org:ports.git

I think it is maybe related to my pure internet connection.

If I switch to ssh it takes some minutes the fetch starts, but it seems 
to work fine.
Is it maybe necessary to adapt here some timeouts to have https fetch 
working also for slow internet connections?

Gruß
Matthias

-- 

"Programming today is a race between software engineers striving to
build bigger and better idiot-proof programs, and the universe trying to
produce bigger and better idiots. So far, the universe is winning." --
Rich Cook