[uWSGI] Protobuf + HTTP

Roberto Bouza bouzafr at gmail.com
Thu Apr 2 01:04:29 CEST 2015


Basically we are getting a TCP packet which has X amount of bytes then the
rest are the HTTP payload.

So I guess I can implement a protocol that reads X bytes from protobuf then
reads the HTTP bytes and sends that to the HTTP engine. Replies are always
HTTP.

Thanks!

On Wed, Apr 1, 2015 at 11:22 AM Roberto De Ioris <roberto at unbit.it> wrote:

>
> > Hello,
> >
> > Just wondering if there is a way in uWSGI to get X amount of bytes from
> > the
> > packet that are protobuf, do some logic and then send the rest of the
> > bytes
> > as the HTTP packet.
> >
> > Something like what the Netty Pipeline does.
> >
> > Thank you.
> >
>
> If you mean passing requests as protobuf and getting back http responses,
> you can implement a protocol plugin.
>
> The scgi one is a good example for starting:
>
>
> https://github.com/unbit/uwsgi/blob/master/proto/scgi.c
>
>
> --
> Roberto De Ioris
> http://unbit.com
> _______________________________________________
> uWSGI mailing list
> uWSGI at lists.unbit.it
> http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.unbit.it/pipermail/uwsgi/attachments/20150401/83515f0e/attachment.html>


More information about the uWSGI mailing list