have a framework to work like this, twistter

2015-08-05 14:03 GMT-03:00 Javier Guerra Giraldez <jav...@guerrag.com>:

> On Wed, Aug 5, 2015 at 10:14 AM, Idan Shimon <idans...@gmail.com> wrote:
> > Hi i am interested to setup my own socket protocol against a peripheral
> > device
> > The socket server would be online and exposed to the web, however it will
> > not work on http.
>
>
> not as it is currently.
>
> the issue is that Django is a WSGI app, and Nginx doesn't pass TCP
> connections, it parses HTTP and passes it to the Python stack (via
> FastCGI, uWSGI, HTTP, etc).  Even if the backend connection is HTTP,
> it's a "reconstructed" http after being interpreted by the frontend.
>
> if your protocol is not HTTP but it's roughly request-response, then
> you might be able to create a frontend that calls Django (or any WSGI
> app) in the back.  Maybe by hacking gunicorn, or creating a uWSGI
> plugin, or using the new async capabilities in the latests Python
> versions... but it would be the current stack as is.
>
> --
> Javier
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAFkDaoS5CHn_dGc6-0QjOkqD-6JMqxMdoe5VGoRUE3VJFcDmpQ%40mail.gmail.com
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAA8yBMyKrrWzoA0efeMSk%2BVjqUJih5cAp%3D%2BYcY9UvTsP1feb%2BQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to