Commit 35e8b126 authored by Denis Bilenko's avatar Denis Bilenko

make HTTPServer accept 'backlog' keyword argument to override the default value

parent 65192bcd
......@@ -13,7 +13,9 @@ class HTTPServer(object):
spawn = Greenlet.spawn # set to None to avoid spawning at all
backlog = 256
def __init__(self, handle=None, spawn='default'):
def __init__(self, handle=None, spawn='default', backlog=None):
if backlog is not None:
self.backlog = backlog
self.listeners = []
self._stopped_event = Event()
self._no_connections_event = Event()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment