Skip to content

较大的包下载过程出错 #14

@zsy5172

Description

@zsy5172

docker环境下,以较慢的速度(kb/s)下载大文件的时候,时不时会出错

2022/11/23 09:11:21 172.31.1.82 "GET http://mirrors.tuna.tsinghua.edu.cn/ubuntu/pool/main/n/networkd-dispatcher/networkd-dispatcher_2.1-2%7eubuntu20.04.3_all.deb HTTP/1.1" (OK) 15476 MISS 454.480627ms
2022/11/23 09:11:21 rewrote "/ubuntu/pool/main/s/systemd/udev_245.4-4ubuntu3.19_amd64.deb" to "http://mirrors.tuna.tsinghua.edu.cn/ubuntu/pool/main/s/systemd/udev_245.4-4ubuntu3.19_amd64.deb"
2022/11/23 09:12:13 rewrote "/ubuntu/pool/main/s/systemd/udev_245.4-4ubuntu3.19_amd64.deb" to "http://mirrors.tuna.tsinghua.edu.cn/ubuntu/pool/main/s/systemd/udev_245.4-4ubuntu3.19_amd64.deb"
panic: net/http: abort Handler
goroutine 760 [running]:
net/http/httputil.(*ReverseProxy).ServeHTTP(0xc000262e60, {0x79ef78?, 0xc000016510}, 0xc0002f0000)
	/opt/hostedtoolcache/go/1.19.2/x64/src/net/http/httputil/reverseproxy.go:363 +0xee9
github.com/soulteary/apt-proxy/pkg/httpcache.(*Handler).passUpstream.func1()
	/home/runner/work/apt-proxy/apt-proxy/pkg/httpcache/handler.go:253 +0x3d
created by github.com/soulteary/apt-proxy/pkg/httpcache.(*Handler).passUpstream
	/home/runner/work/apt-proxy/apt-proxy/pkg/httpcache/handler.go:252 +0x1fb

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions