Patch "tcp: purge write queue upon RST" has been added to the 4.14-stable tree