Hi,

On Tue, Feb 21, 2017 at 09:29:50AM +0100, David Douard wrote:
> Thanks for the bug report. I'll try to investiate this (as well as several 
> other small issues) ASAP (probably not before one or 2 weeks however).

The issue is that the waitress backend does not start:
% /usr/bin/python2.7 -m chaussette.server --backend waitress
2017-03-19 08:46:54 [23969] [INFO] Application is <function hello_app at 
0x7f6317213758>
2017-03-19 08:46:54 [23969] [INFO] Serving on localhost:8080
2017-03-19 08:46:54 [23969] [INFO] Using <class 
'chaussette.backend._waitress.Server'> as a backend
Traceback (most recent call last):
  File "/usr/lib/python2.7/runpy.py", line 174, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
    exec code in run_globals
  File 
"/home/evgeni/Debian/BSP/credativ2017/chaussette-1.3.0/chaussette/server.py", 
line 228, in <module>
    main()
  File 
"/home/evgeni/Debian/BSP/credativ2017/chaussette-1.3.0/chaussette/server.py", 
line 224, in main
    inner()
  File 
"/home/evgeni/Debian/BSP/credativ2017/chaussette-1.3.0/chaussette/server.py", 
line 205, in inner
    socket_type=_SOCKET_TYPE[args.socket_type])
  File 
"/home/evgeni/Debian/BSP/credativ2017/chaussette-1.3.0/chaussette/server.py", 
line 38, in make_server
    server = server_class((host, port), app, **server_class_kwargs)
  File "chaussette/backend/_waitress.py", line 20, in __init__
    port=port)
  File "/usr/lib/python2.7/dist-packages/waitress/server.py", line 179, in 
__init__
    self.socket.setsockopt(IPPROTO_IPV6, IPV6_V6ONLY, 1)
  File "/usr/lib/python2.7/socket.py", line 228, in meth
    return getattr(self._sock,name)(*args)
socket.error: [Errno 92] Protocol not available

But it is announced as available:
>>> import chaussette.backend
>>> chaussette.backend.backends()
['eventlet', 'fastgevent', 'gevent', 'geventwebsocket', 'geventws4py', 
'socketio', 'tornado', 'waitress', 'wsgiref']

Reply via email to