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.

-- 
You received this message because you are subscribed to the Google Groups 
"ArangoDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/arangodb/40f9e0c8-400a-4820-96e0-bd2a4ce2156en%40googlegroups.com.

Reply via email to