Sfoglia il codice sorgente

Tweaked error messages.

James Phillips 8 anni fa
parent
commit
456971d9d5
1 ha cambiato i file con 3 aggiunte e 3 eliminazioni
  1. 3 3
      session.go

+ 3 - 3
session.go

@@ -598,7 +598,7 @@ func (s *Session) closeStream(id uint32) {
 		select {
 		case <-s.synCh:
 		default:
-			s.logger.Printf("[ERR] yamux: un-established stream without inflight syn semaphore")
+			s.logger.Printf("[ERR] yamux: SYN tracking out of sync")
 		}
 	}
 	delete(s.streams, id)
@@ -612,12 +612,12 @@ func (s *Session) establishStream(id uint32) {
 	if _, ok := s.inflight[id]; ok {
 		delete(s.inflight, id)
 	} else {
-		s.logger.Printf("[ERR] yamux: established stream without inflight syn entry")
+		s.logger.Printf("[ERR] yamux: established stream without inflight SYN (no tracking entry)")
 	}
 	select {
 	case <-s.synCh:
 	default:
-		s.logger.Printf("[ERR] yamux: established stream without inflight syn semaphore")
+		s.logger.Printf("[ERR] yamux: established stream without inflight SYN (didn't have semaphore)")
 	}
 	s.streamLock.Unlock()
 }