On Wed, 12 Jun 2013 11:11:10 GMT, maarten wrote:

This is what I see when reading the source of youtube.com:
(insert perfectly valid html)

(...)

It's like it's getting cut off, like the connection is getting flushed prematurely.

Using the pasted code youtube works fine for me, at least on Windows (also using the libevent back end). I think this needs some debugging by looking at the exact TCP traffic.