Skip to content

v2: unexpected response on connect tear #129

Closed
@DifferentialOrange

Description

@DifferentialOrange

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 workingdocRelated to documentationteamEv2

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions