applied priority queue changes to the TCP client too