Skip to content

Commit

Permalink
Merge ae7b78e into 31da8b7
Browse files Browse the repository at this point in the history
  • Loading branch information
cpg committed Apr 12, 2017
2 parents 31da8b7 + ae7b78e commit b087984
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
@@ -1,10 +1,10 @@
language: go

go:
- 1.2
- 1.3
- 1.4
- 1.5
- 1.6
- 1.7

before_install:
- go get code.google.com/p/go.tools/cmd/cover || go get golang.org/x/tools/cmd/cover
Expand Down
5 changes: 5 additions & 0 deletions stream.go
Expand Up @@ -554,6 +554,11 @@ func (s *Stream) WriteHeader(code int) {
}
// Write the frame
sr := frameSynReply{session: s.session, stream: s.id, headers: s.headers}
if s.closed {
// FIXME-cpg: how should this error be propagated upstream?
log.Println("ERROR: Attempting to send on a closed stream in ResponseWriter.WriteHeader.")
return
}
debug.Println("Sending SYN_REPLY", sr)
s.session.out <- sr
s.wroteHeader = true
Expand Down

0 comments on commit b087984

Please sign in to comment.