I have already tried a lot of different settings with
context and the ConnectionConfig, but I still get a http gateway timeout
when I want to execute a query that takes 180 seconds on the ArangoDB
page when I run ArangoDB in my webbrowser. Currently I've these
settings:
conn, err := http.NewConnection(http.ConnectionConfig{
Endpoints: []string{fmt.Sprintf("%s:%d", databaseHost, databasePort)},
TLSConfig: &tls.Config{InsecureSkipVerify: true},
ConnectionConfig: cluster.ConnectionConfig{DefaultTimeout: 10 * time.Minute},
Transport: &nethttp.Transport{
Proxy: nethttp.ProxyFromEnvironment,
DialContext: (&net.Dialer{
Timeout: 10 * time.Minute,
KeepAlive: 10 * time.Minute,
Deadline: time.Now().Add(10 * time.Minute),
}).DialContext,
ForceAttemptHTTP2: true,
MaxIdleConns: 100,
IdleConnTimeout: 10 * time.Minute,
TLSHandshakeTimeout: 10 * time.Minute,
ExpectContinueTimeout: 10 * time.Minute,
ResponseHeaderTimeout: 10 * time.Minute,
},
})
And with queries that take less time it goes well.
Does someone know what I can do to make it work with even queries that take a long time to finish.