INNER CODE UNIT · Python

_development_servers

selkies-project/selkies · addons/turn-rest/app.py:166

def _development_servers(addr: str, port: int) -> list:
    """One werkzeug server per address `addr` names.

    `addr` is a host name or address, or a comma-separated list of them, each
    bound on every address it resolves to. The sockets are bound here rather
    than by werkzeug, which serves one address per server and leaves an IPv6
    socket dual-stack, so `0.0.0.0,::` would collide on the port. An address
    the host lacks is skipped while another binds; anything else, or nothing
    binding, raises.

    Raises:
        OSError: When no address of `addr` can be bound.
    """
    import errno
    import socket
    from werkzeug.serving import make_server

    candidates = []

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…