forked from fl00r/go-tarantool-1.6
- Notifications
You must be signed in to change notification settings - Fork 60
Closed
Labels
1spbugSomething isn't workingSomething isn't workingdocRelated to documentationRelated to documentationteamEv2
Description
Tarantool setup
box.cfg{ listen = 3401 } box.schema.user.grant('guest', 'read,write,execute,create,drop,alter', 'universe', nil, { if_not_exists = true })Go code
package main import ( "github.com/tarantool/go-tarantool" "log" "time" ) func main() { var uri string = "127.0.0.1:3401" var user string = "guest" opts := tarantool.Opts{User: user, Timeout: 60 * time.Second, Reconnect: 3 * time.Second, MaxReconnects: 5} conn, err := tarantool.Connect(uri, opts) if err != nil { log.Fatalf("Connection refused:", err) } resp1, err1 := conn.Eval("require('fiber').sleep(10); return true", []interface{}{}) log.Println(resp1) log.Println(err1)If I stop running Tarantool with Ctrl+C golang prints
2021/12/27 17:42:54 <nil> 2021/12/27 17:42:54 EOF Response resp do not have Code and Data fields as usual, attempt to extract them results in segmentation fault; error seems useless.
Metadata
Metadata
Assignees
Labels
1spbugSomething isn't workingSomething isn't workingdocRelated to documentationRelated to documentationteamEv2