Issues about make iso

I am trying to build iso, but failed many times.

I noticed when all http(get) socket enter CLOSE_WAIT state, it fails.

Does anyone know how to fix it?

root@Debian11:/home/code/vyos-build# date; netstat -anp | grep http 
Thu 10 Mar 2022 06:03:23 PM CST
tcp        1      0 172.27.89.223:45348     18.233.245.224:80       CLOSE_WAIT  31389/http          
tcp        0      0 172.27.89.223:39022     151.101.74.132:80       ESTABLISHED 31390/http          
tcp        1      0 172.27.89.223:34000     188.166.116.224:80      CLOSE_WAIT  31387/http          
tcp       25      0 172.27.89.223:56450     13.225.138.37:443       CLOSE_WAIT  31388/https         
tcp       25      0 172.27.89.223:57638     99.84.192.33:443        CLOSE_WAIT  31386/https         
root@Debian11:/home/code/vyos-build#

tcp socket is in close_wait state, but recv-q is not empty!

Hello, has anyone ever encoutered this situation:

  1. make iso stopped @ “Get:27 Index of /debian stretch/main Translation-en [5377 kB]”
  2. tcp socket is in close_wait state and recv-q is not empty!
root@Debian11:/home/vyos/vyos-build# tail  build/build.log -f
Get:18 http://security.debian.org/debian-security buster/updates/main Translation-en [172 kB]
Get:19 http://security.debian.org/debian-security buster/updates/non-free amd64 Packages [556 B]
Get:20 http://security.debian.org/debian-security buster/updates/non-free Translation-en [344 B]
Get:21 http://deb.debian.org/debian buster/main Translation-en [5968 kB]
Get:22 http://deb.debian.org/debian buster/non-free amd64 Packages [87.7 kB]
Get:23 http://deb.debian.org/debian buster/non-free Translation-en [88.8 kB]
Get:24 http://deb.debian.org/debian buster-updates/main amd64 Packages [8792 B]
Get:25 http://deb.debian.org/debian buster-updates/main Translation-en [6915 B]
Get:26 http://deb.debian.org/debian stretch/main Sources [6736 kB]
Get:27 http://deb.debian.org/debian stretch/main Translation-en [5377 kB]
^C
root@Debian11:/home/vyos/vyos-build# 
root@Debian11:/home/vyos/vyos-build# ps -aef | grep http
message+ 24826 24823  0 10:12 ?        00:00:00 /usr/lib/apt/methods/http
message+ 24827 24823  0 10:12 ?        00:00:00 /usr/lib/apt/methods/http
message+ 24828 24823  0 10:12 ?        00:00:00 /usr/lib/apt/methods/http
message+ 24829 24823  0 10:12 ?        00:00:01 /usr/lib/apt/methods/http
root     25577 25549  0 11:07 pts/1    00:00:00 grep http
root@Debian11:/home/vyos/vyos-build# 
root@Debian11:/home/vyos/vyos-build# 
root@Debian11:/home/vyos/vyos-build# netstat -anp | grep http
tcp        1      0 172.27.89.223:42012     151.101.74.132:80       CLOSE_WAIT  24829/http          
tcp        1      0 172.27.89.223:39846     18.233.106.148:80       CLOSE_WAIT  24826/http          
tcp        1      0 172.27.89.223:36994     188.166.116.224:80      CLOSE_WAIT  24827/http          
tcp        1      0 172.27.89.223:60484     151.101.110.132:80      CLOSE_WAIT  24828/http          
root@Debian11:/home/vyos/vyos-build# 

close this question.

I succed to make iso on a server located in America.
So I think my problem was caused by network environment.