]> Cypherpunks repositories - gostls13.git/commit
compress/flate: do not use background goroutines
authorRuss Cox <rsc@golang.org>
Thu, 2 Jun 2011 13:32:38 +0000 (09:32 -0400)
committerRuss Cox <rsc@golang.org>
Thu, 2 Jun 2011 13:32:38 +0000 (09:32 -0400)
commit07acc02a29ac74e7c0b08b4cd382bf71acd262dd
tree2225f4169edf1b33ea40b32ee34770df17dd5c1d
parent422abf3b8e9fd94c31bb064af4aab8d27d4dbf10
compress/flate: do not use background goroutines

Programs expect that Read and Write are synchronous.
The background goroutines make the implementation
a little easier, but they introduce asynchrony that
trips up calling code.  Remove them.

R=golang-dev, krasin
CC=golang-dev
https://golang.org/cl/4548079
src/pkg/compress/flate/deflate.go
src/pkg/compress/flate/deflate_test.go
src/pkg/compress/flate/inflate.go