william-os4y/fapws3 — pull request #28 by k3d3 (2011-12-16 22:34:58+00:00)
Title: Unix socket

Implementation for listening on a unix socket

Instead of
``` evwsgi.start("127.0.0.1","8080")```
you can call
``` evwsgi.start("/srv/server.sock","unix")```
to listen on a unix socket at /srv/server.sock

Abstract unix sockets are also available via
``` evwsgi.start("\0abstract_socket","unix")```
I've also added code to get the server's file descriptor via
``` evwsgi.socket_fd()```
as well as for wsgi connections in
``` environ['fapws.socket_fd']```

Compatibility for all existing programs using fapws3 retain full compatibility, and no changes are needed for them.