fix socket leak introduced in r1374 when request header and body was in one packet and connection went to keep-alive state