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 <[email protected]> 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
> [email protected]
> http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi
>
_______________________________________________
uWSGI mailing list
[email protected]
http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi

Reply via email to