Adds logging on receipt of GOAWAY frame

This commit is contained in:
Gian Biondi
2015-04-30 15:03:19 -04:00
parent 3ea7cd9385
commit a91c7abef5

View File

@ -167,6 +167,7 @@ func (t *http2Server) operateHeaders(hDec *hpackDecoder, s *Stream, frame header
t.mu.Lock()
if t.goaway {
//Stop creating streams on this transport
log.Printf("transport: http2server received GOAWAY, rejecting new streams")
t.mu.Unlock()
return nil
}