Skip to content
Browse files

explicitly close pipeclient connection on EXEC. fixed #8

  • Loading branch information...
1 parent 65f5427 commit 73fc4f2d14a8a86ebfc44a6706fe3cbc801c6f07 Simon Zimmermann committed Mar 29, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 godis.go
View
3 godis.go
@@ -201,7 +201,8 @@ func (p *Pipe) count() int {
}
func (p *Pipe) free() {
- p.pool.push(p.conn)
+ p.conn.rwc.Close()
+ p.pool.push(nil)
p.conn = nil
p.appendMode = true
}

0 comments on commit 73fc4f2

Please sign in to comment.
Something went wrong with that request. Please try again.