Brad Fitzpatrick b7f5d985f9 http2: change the pipe and buffer code
Make the pipe code take an interface as the backing store.  Now a pipe
is something that's goroutine-safe and does the Cond waits but its underlying data
is now an interface: anything that's a ReaderWriter with a Len method (such as a
*bytes.Buffer), or a fixedBuffer (renamed in this CL from 'buffer').

This opens the ground to having a non-fixed buffer used with pipe.

This also moves the CloseWithError code up into the pipe code, out of
fixedBuffer.

Change-Id: Ia3b853e8aa8920807b705ff4e41bed934a8c67b7
Reviewed-on: https://go-review.googlesource.com/16312
Reviewed-by: Blake Mizerany <blake.mizerany@gmail.com>
2015-10-27 18:48:40 +00:00
2014-12-09 14:17:11 +11:00
2014-12-09 14:17:11 +11:00
2014-12-09 14:17:11 +11:00
2015-08-29 23:03:18 +00:00
2015-03-18 17:04:12 +00:00
2015-02-18 23:42:41 +00:00

This repository holds supplementary Go networking libraries.

To submit changes to this repository, see http://golang.org/doc/contribute.html.
Description
[mirror] Go supplementary network libraries
Readme BSD-3-Clause 13 MiB
Languages
Go 99.9%