]> Cypherpunks repositories - gostls13.git/commit
http/spdy: improve error handling.
authorWilliam Chan <willchan@chromium.org>
Tue, 14 Jun 2011 15:31:18 +0000 (11:31 -0400)
committerRuss Cox <rsc@golang.org>
Tue, 14 Jun 2011 15:31:18 +0000 (11:31 -0400)
commit5af8e53a148165bf1b57952d20969e859a39243d
tree290287826c79c1ac4b82409e71cd8f9852152273
parent400d825ea0d0471f4b395eabde6b963835250ec3
http/spdy: improve error handling.

Create a new spdy.Error type that includes the enumerated error type and
the associated stream id (0 if not associated with a specific stream).
This will let users handle errors differently (RST_STREAM vs GOAWAY).

R=bradfitz, rsc, rogpeppe
CC=golang-dev
https://golang.org/cl/4532131
src/pkg/http/spdy/read.go
src/pkg/http/spdy/spdy_test.go
src/pkg/http/spdy/types.go
src/pkg/http/spdy/write.go