Changed the HTTP parser to attoparsec and timeout stream to bytestrings. Much better now.