SlyMarbo / spdy

[deprecated] A full-featured SPDY library for the Go language.
BSD 2-Clause "Simplified" License
116 stars 13 forks source link

race condition with conn.sending #29

Closed cpg closed 11 years ago

cpg commented 11 years ago

one more race condition

Read by goroutine 39:
  github.com/SlyMarbo/spdy.(*connV3).readFrames()
      /home/cpg/proxy/src/github.com/SlyMarbo/spdy/spdy3_conn.go:951 +0x3a3
  gosched0()
      /usr/lib64/golang/src/pkg/runtime/proc.c:1218 +0x9f

Previous write by goroutine 38:
  github.com/SlyMarbo/spdy.(*connV3).send()
      /home/cpg/proxy/src/github.com/SlyMarbo/spdy/spdy3_conn.go:1147 +0x723
  gosched0()
      /usr/lib64/golang/src/pkg/runtime/proc.c:1218 +0x9f