ignore duplicate ACK and out-of-order ACK errors in Session

This commit is contained in:
Marten Seemann
2016-04-26 10:48:14 +07:00
parent b4fae00880
commit c8f48fe5bc
3 changed files with 6 additions and 5 deletions

View File

@@ -75,7 +75,7 @@ func (s *Session) Run() {
case <-time.After(sendTimeout):
err = s.sendPacket()
}
if err != nil {
if err != nil && err != ackhandler.ErrDuplicateOrOutOfOrderAck {
fmt.Printf("Error in session: %s\n", err.Error())
}