[FFmpeg-devel] [PATCH][GSoC] lavf/http: Parse and set HTTP method when listening on HTTP(S)

Nicolas George george at nsup.org
Mon Jun 1 22:52:34 CEST 2015


Le tridi 13 prairial, an CCXXIII, Stephan Holljes a écrit :
> After looking at the ffserver code, I'm wondering if maintaining a
> list of clients as HTTPContext or custom wrapper structs would make
> sense.
> For the time being it would only contain the singular client context
> which can be accepted right now, but in the future could contain an
> arbitrary number of clients.
> Before I start implementing that I would like to know if it is a good
> choice to do this.

Have you considered the more traditional approach: when a client is
accepted, create a new AVFormatContext for it?

It seems simpler, and more adapted for various uses, for example if an
application wants to handle clients in separate threads or even forks. But
maybe there are benefits to your idea that I have not seen.

Also, that choice seems orthogonal to the question at hand: what do you want
to do with the method and other connection options?

Regards,

-- 
  Nicolas George
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20150601/25926f79/attachment.asc>


More information about the ffmpeg-devel mailing list