send a RstStreamFrame when receiving a RstStreamFrame on an open stream

fixes #378
This commit is contained in:
Marten Seemann
2017-01-03 17:51:56 +07:00
parent 544a58a038
commit 8ce763682a
3 changed files with 40 additions and 4 deletions

View File

@@ -62,7 +62,7 @@ func (m *mockFlowControlHandler) AddBytesRead(streamID protocol.StreamID, n prot
}
func (m *mockFlowControlHandler) ResetStream(streamID protocol.StreamID, byteOffset protocol.ByteCount) (protocol.ByteCount, error) {
return 0, m.UpdateHighestReceived(streamID, byteOffset)
return m.bytesSent, m.UpdateHighestReceived(streamID, byteOffset)
}
func (m *mockFlowControlHandler) UpdateHighestReceived(streamID protocol.StreamID, byteOffset protocol.ByteCount) error {