mirror of
https://codeberg.org/Codeberg/pages-server.git
synced 2024-11-18 10:29:43 +00:00
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!
|
||
|
}
|
||
|
}
|