forked from quic-go/quic-go
also use the onHasStreamData callback for the crypto stream
This commit is contained in:
@@ -15,7 +15,6 @@ type cryptoStreamI interface {
|
||||
handleStreamFrame(*wire.StreamFrame) error
|
||||
popStreamFrame(protocol.ByteCount) (*wire.StreamFrame, bool)
|
||||
closeForShutdown(error)
|
||||
hasDataForWriting() bool
|
||||
setReadOffset(protocol.ByteCount)
|
||||
// methods needed for flow control
|
||||
getWindowUpdate() protocol.ByteCount
|
||||
@@ -40,10 +39,3 @@ func (s *cryptoStream) setReadOffset(offset protocol.ByteCount) {
|
||||
s.receiveStream.readOffset = offset
|
||||
s.receiveStream.frameQueue.readPosition = offset
|
||||
}
|
||||
|
||||
func (s *cryptoStream) hasDataForWriting() bool {
|
||||
s.sendStream.mutex.Lock()
|
||||
hasData := s.sendStream.dataForWriting != nil
|
||||
s.sendStream.mutex.Unlock()
|
||||
return hasData
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user