Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
marten-seemann committed Dec 8, 2022
1 parent 32abb4f commit 6f91520
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions p2p/transport/webtransport/listener.go
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,9 @@ func (l *listener) httpHandler(w http.ResponseWriter, r *http.Request) {
l.transport.addConn(sess, conn)
select {
case l.queue <- conn:
fmt.Println("accepting conn. queue len:", len(l.queue))
default:
fmt.Println("rejecting conn")
log.Debugw("accept queue full, dropping incoming connection", "peer", sconn.RemotePeer(), "addr", r.RemoteAddr, "error", err)
sess.CloseWithError(1, "")
connScope.Done()
Expand Down

0 comments on commit 6f91520

Please sign in to comment.