#!/bin/sh # ssq.sh — INSIDE guest 9201 (R-1250 diagnosis, read only): the queued bytes on the seed's TCP sockets — qBittorrent's own # (in its container's netns) and the forwarder's two (guest netns) — five readings 3 s apart. PID=$(docker inspect -f '{{.State.Pid}}' qbittorrent) for i in 1 2 3 4 5; do echo "== $(date -u +%T)" echo "-- qbittorrent (container netns), established, port 6881:" nsenter -t $PID -n ss -tni state established '( sport = :6881 or dport = :6881 )' | grep -v '^Recv' | awk 'NR%2==1{printf "%s ",$0; next}{print}' | awk '{print "Recv-Q="$1, "Send-Q="$2, $3, $4}' echo "-- forwarder (guest netns), established, port 6881:" ss -tni state established '( sport = :6881 or dport = :6881 )' | grep -v '^Recv' | awk 'NR%2==1{printf "%s ",$0; next}{print}' | awk '{print "Recv-Q="$1, "Send-Q="$2, $3, $4}' sleep 3 done