fix RST_STREAM loop