serve


Attributes

a MAXFD

1024

Functions

f live_pidfile(pidfile) ...

(pidfile:str) -> int | None Returns an int found in the named file, if there is one, and if there is a running process with that process id. Return None if no such process exists.

f read_pidfile(filename) ...

f ensure_port_cleanup(bound_addresses, maxtries=30, sleeptime=2) ...

This makes sure any open ports are closed.

Does this by connecting to them until they give connection refused. Servers should call like:

import paste.script
ensure_port_cleanup([80, 443])

Classes

C DaemonizeException(...) ...

This class contains 6 members.

C ServeCommand(...) ...

This class contains 28 members.

C LazyWriter(...) ...

File-like object that opens a file lazily when it is first written to.

This class contains 5 members.

See the source for more information.