Skip to content
This repository was archived by the owner on Jul 21, 2021. It is now read-only.
This repository was archived by the owner on Jul 21, 2021. It is now read-only.

conn.Close is not Idempotent #148

Description

@ganesh-karthick

API conn.Close()
Calling conn.Close on already closed connection causes program to panic, It would be good, if the call is made idempotent.

goroutine 8 [running]:
panic(0x576420, 0xc420252880)
	Documents/devtools/go/src/runtime/panic.go:500 +0x1a1
/github.com/samuel/go-zookeeper/zk.(*Conn).Close(0xc4203ea000)
	/home/Documents/git/goworkspace/src/github.com/samuel/go-zookeeper/zk/conn.go:253 +0x47

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions