Hi everyone,

i have just committed a new proto/http.c version that speed up http parsing of 
about 110%
in respect of the old implementation.

Now it is a lot more convenient for fronted not speaking the uwsgi protocol 
(like varnish) to directly speak with a uwsgi socket in http mode:

(a varnish vcl example)


backend uwsgi {
    .host = "127.0.0.1";
    .port = "8080";
}

backend static {
    .host = "127.0.0.1";
    .port = "80";
}

sub vcl_recv {
        if (req.url ~ "^/images") {
                set req.backend = static;
        }
        else {
                set req.backend = uwsgi;
        }
}


As you can see varnish will pass request to /images to one http server (say 
apache or nginx) and can directly connect to a uwsgi instance
cutting down the overhead of the old configurations.

I have added a couple of commodity options, so for example to have your 
instance bind on both uwsgi and http protocols you can use


uwsgi --http-socket :8080 --socket :3031 

(as always you can specify all of the socket options you want)

--
Roberto De Ioris
http://unbit.it

_______________________________________________
uWSGI mailing list
[email protected]
http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi

Reply via email to