mirror of
https://codeberg.org/Codeberg/pages-server.git
synced 2024-12-01 04:35:28 +00:00
02bd942b04
continue #75 close #16 - fix regression (from #34) _thanks to @crystal_ - create own gitea client package - more logging - add mock impl of CertDB Co-authored-by: 6543 <6543@obermui.de> Co-authored-by: crystal <crystal@noreply.codeberg.org> Reviewed-on: https://codeberg.org/Codeberg/pages-server/pulls/78 Reviewed-by: crapStone <crapstone@noreply.codeberg.org>
16 lines
322 B
Go
16 lines
322 B
Go
package gitea
|
|
|
|
import (
|
|
"time"
|
|
|
|
"github.com/valyala/fasthttp"
|
|
)
|
|
|
|
func getFastHTTPClient() *fasthttp.Client {
|
|
return &fasthttp.Client{
|
|
MaxConnDuration: 60 * time.Second,
|
|
MaxConnWaitTimeout: 1000 * time.Millisecond,
|
|
MaxConnsPerHost: 128 * 16, // TODO: adjust bottlenecks for best performance with Gitea!
|
|
}
|
|
}
|