[uWSGI] how can I see directly what is send by uwsgi

Roberto De Ioris roberto at unbit.it
Mon Jan 11 16:18:32 CET 2010


On Mon, 2010-01-11 at 11:10 -0400, Yann Malet wrote:
> Roberto,
> 
> 
> out of curiosity I would be interested to understand how it is
> possible to see directly the output from uwsgi. (without using
> cherokee). For example on this
> page : http://projects.unbit.it/uwsgi/wiki/FastFuncs
> 
> 
> You show this kind of request ?
> 26|0|0|1
> Is there a tool that I can use to see this and talk with uwsgi at that
> level ?
> Regards,
> 
> 
> --yml
> 



You can use the uwsgi.send_uwsgi_message embedded functions:



import uwsgi

uwsgi.send_uwsgi_message("ipaddress", port, modifier1, modifier2,
message, timeout)

message can be every python marshallable object (None, string, integer,
tuple, dictionary, list and float). For fastfuncs you can use None.


-- 
Roberto De Ioris
http://unbit.it
JID: roberto at jabber.unbit.it



More information about the uWSGI mailing list