mirror of
https://github.com/refraction-networking/uquic.git
synced 2025-04-06 05:37:36 +03:00
remove outdated TODOs
This commit is contained in:
parent
e8b2d9748a
commit
2864c97a70
3 changed files with 0 additions and 3 deletions
|
@ -27,7 +27,6 @@ type SendAlgorithmWithDebugInfo interface {
|
||||||
BandwidthEstimate() Bandwidth
|
BandwidthEstimate() Bandwidth
|
||||||
|
|
||||||
// Stuff only used in testing
|
// Stuff only used in testing
|
||||||
// TODO: Maybe make CubicSender public and typeassert in tests?
|
|
||||||
|
|
||||||
HybridSlowStart() *HybridSlowStart
|
HybridSlowStart() *HybridSlowStart
|
||||||
SlowstartThreshold() protocol.PacketNumber
|
SlowstartThreshold() protocol.PacketNumber
|
||||||
|
|
|
@ -211,7 +211,6 @@ func (s *Session) handlePacketImpl(remoteAddr interface{}, hdr *publicHeader, da
|
||||||
case *frames.StreamFrame:
|
case *frames.StreamFrame:
|
||||||
utils.Debugf("\t<- &frames.StreamFrame{StreamID: %d, FinBit: %t, Offset: 0x%x, Data length: 0x%x, Offset + Data length: 0x%x}", frame.StreamID, frame.FinBit, frame.Offset, len(frame.Data), frame.Offset+protocol.ByteCount(len(frame.Data)))
|
utils.Debugf("\t<- &frames.StreamFrame{StreamID: %d, FinBit: %t, Offset: 0x%x, Data length: 0x%x, Offset + Data length: 0x%x}", frame.StreamID, frame.FinBit, frame.Offset, len(frame.Data), frame.Offset+protocol.ByteCount(len(frame.Data)))
|
||||||
err = s.handleStreamFrame(frame)
|
err = s.handleStreamFrame(frame)
|
||||||
// TODO: send error for flow control violation
|
|
||||||
// TODO: send RstStreamFrame
|
// TODO: send RstStreamFrame
|
||||||
case *frames.AckFrame:
|
case *frames.AckFrame:
|
||||||
err = s.handleAckFrame(frame)
|
err = s.handleAckFrame(frame)
|
||||||
|
|
|
@ -164,7 +164,6 @@ func WriteUint16(b *bytes.Buffer, i uint16) {
|
||||||
|
|
||||||
// RandomBit returns a cryptographically secure random bit (encoded as true / false)
|
// RandomBit returns a cryptographically secure random bit (encoded as true / false)
|
||||||
func RandomBit() (bool, error) {
|
func RandomBit() (bool, error) {
|
||||||
// TODO: it's probably more efficient to read a bigger slice of random numbers at once and to cache them somewhere
|
|
||||||
b := make([]byte, 1)
|
b := make([]byte, 1)
|
||||||
_, err := rand.Read(b)
|
_, err := rand.Read(b)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue