decrease debug output

This commit is contained in:
Lucas Clemente
2016-04-14 20:40:20 +02:00
parent 1760bc3227
commit 388fdf7399
2 changed files with 2 additions and 1 deletions

View File

@@ -56,7 +56,7 @@ func main() {
if err != nil {
panic(err)
}
fmt.Printf("%#v\n", publicHeader)
fmt.Printf("Got packet # %d\n", publicHeader.PacketNumber)
// Send Version Negotiation Packet if the client is speaking a different protocol version
if publicHeader.VersionFlag && publicHeader.QuicVersion != QuicVersion32 {

View File

@@ -60,6 +60,7 @@ func (s *Session) HandlePacket(addr *net.UDPAddr, publicHeaderBinary []byte, pub
if err != nil {
return err
}
fmt.Printf("Got %d bytes for stream %d\n", len(frame.Data), frame.StreamID)
// TODO: Switch stream here
if frame.StreamID != 1 {