Brad Fitzpatrick 271cfc1e29 http2: fix handling of errors from the readFrames goroutine
There was a design problem earlier where the serve goroutine assumed
that the readFrame goroutine could return only connection-level
errors, but the readFrames goroutine (and the underlying Framer)
assumed it could return stream-level errors (type StreamError) and
have them handled as stream errors in the layers above. That's how it
should have been, and what this CL does.

Now readFrames returns both the Frame and error from ReadFrames
together as a pair, and an error isn't necessarily fatal to the
connection.

Fixes golang/go#12733
Fixes bradfitz/http2#53

Change-Id: If4406ceaa019886893d3c61e6bfce25ef74560d3
Reviewed-on: https://go-review.googlesource.com/15735
Reviewed-by: Dmitry Vyukov <dvyukov@google.com>
2015-10-13 15:21:57 +00:00
2015-08-05 04:30:13 +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%