fixed bugs releated to big file sizes and ending connections, and added http pipelining support