Browse Source

Merge pull request #672 from woodsaj/fixDeadlock

close call.timeout to prevent deadlock.
Chris Bannister 9 years ago
parent
commit
1e7d626b62
2 changed files with 2 additions and 0 deletions
  1. 1 0
      AUTHORS
  2. 1 0
      conn.go

+ 1 - 0
AUTHORS

@@ -64,3 +64,4 @@ Artem Chernyshev <artem.0xD2@gmail.com>
 Ference Fu <fym201@msn.com>
 LOVOO <opensource@lovoo.com>
 nikandfor <nikandfor@gmail.com>
+Anthony Woods <awoods@raintank.io>

+ 1 - 0
conn.go

@@ -570,6 +570,7 @@ func (c *Conn) exec(req frameWriter, tracer Tracer) (*framer, error) {
 
 	select {
 	case err := <-call.resp:
+		close(call.timeout)
 		if err != nil {
 			if !c.Closed() {
 				// if the connection is closed then we cant release the stream,