make flameresolver timeout shorter
All checks were successful
Build and publish the docker image / build (push) Successful in 57s
All checks were successful
Build and publish the docker image / build (push) Successful in 57s
Signed-off-by: ngn <ngn@ngn.tf>
This commit is contained in:
parent
ef63d59931
commit
801ec1badc
@ -1,4 +1,4 @@
|
|||||||
# [ngn.tf] | AnonymousOverflow
|
# AnonymousOverflow | frontend for stackoverflow.com
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
|
@ -46,7 +46,7 @@ func GET(target string) ([]byte, int, http.Header, error) {
|
|||||||
SetBody(request{
|
SetBody(request{
|
||||||
Cmd: "request.get",
|
Cmd: "request.get",
|
||||||
Url: target,
|
Url: target,
|
||||||
MaxTimeout: 60000,
|
MaxTimeout: 15000,
|
||||||
}).
|
}).
|
||||||
SetResult(&response{}).
|
SetResult(&response{}).
|
||||||
Post(frurl)
|
Post(frurl)
|
||||||
@ -56,7 +56,6 @@ func GET(target string) ([]byte, int, http.Header, error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if res.StatusCode() != 200 {
|
if res.StatusCode() != 200 {
|
||||||
fmt.Printf("flareresolver request to %s failed: %d (%s)\n", target, res.StatusCode(), frurl)
|
|
||||||
return nil, 0, nil, fmt.Errorf("flareresolver failure")
|
return nil, 0, nil, fmt.Errorf("flareresolver failure")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user