[FFmpeg-devel] [PATCH] Non-blocking HTTP

Martin Storsjö martin
Fri Feb 18 19:30:35 CET 2011

On Fri, 18 Feb 2011, Nicolas George wrote:

> To reduce future code duplication, I decided to expose on the common
> structure the fact that HTTP relies on an underlying TCP connection. Other
> protocols, like RTMP, can benefit from the same mechanism. That way, flags
> changes and polling, etc., can be automatically forwarded to the underlying
> protocol without each protocol implementing the forwarding function. These
> are the first two patches. The two others are quite straightforward.

On a quick read through, it seems quite sane to me.

I guess you've done extensive tests with handling EAGAIN in inconvenient 
places, e.g. halfway through chunk size and such. The code looks like it's 
originally quite well-prepared for that situation at least.

// Martin

More information about the ffmpeg-devel mailing list