Minor stylistic nit, but this end should be an indent outward since it makes the unlink below here hard to decipher if its in the recv_chunked function or not.