tcp: prevent tcp connections from overflowing the partitions vector