forked from quic-go/quic-go
mock MaxLength for RST_STREAM and STOP_WAITING
This commit is contained in:
@@ -2,7 +2,6 @@ package frames
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
"errors"
|
||||
|
||||
"github.com/lucas-clemente/quic-go/protocol"
|
||||
"github.com/lucas-clemente/quic-go/utils"
|
||||
@@ -17,7 +16,12 @@ type RstStreamFrame struct {
|
||||
|
||||
//Write writes a RST_STREAM frame
|
||||
func (f *RstStreamFrame) Write(b *bytes.Buffer) error {
|
||||
return errors.New("RstStreamFrame: Write not yet implemented")
|
||||
panic("RstStreamFrame: Write not yet implemented")
|
||||
}
|
||||
|
||||
// MaxLength of a written frame
|
||||
func (f *RstStreamFrame) MaxLength() int {
|
||||
panic("RstStreamFrame: Write not yet implemented")
|
||||
}
|
||||
|
||||
// ParseRstStreamFrame parses a RST_STREAM frame
|
||||
|
||||
@@ -2,7 +2,6 @@ package frames
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
"errors"
|
||||
|
||||
"github.com/lucas-clemente/quic-go/utils"
|
||||
)
|
||||
@@ -14,7 +13,12 @@ type StopWaitingFrame struct {
|
||||
}
|
||||
|
||||
func (f *StopWaitingFrame) Write(b *bytes.Buffer) error {
|
||||
return errors.New("StopWaitingFrame: Write not yet implemented")
|
||||
panic("StopWaitingFrame: Write not yet implemented")
|
||||
}
|
||||
|
||||
// MaxLength of a written frame
|
||||
func (f *StopWaitingFrame) MaxLength() int {
|
||||
panic("StopWaitingFrame: Write not yet implemented")
|
||||
}
|
||||
|
||||
// ParseStopWaitingFrame parses a StopWaiting frame
|
||||
|
||||
Reference in New Issue
Block a user