pyrad
pyrad copied to clipboard
reuse_port not supported by socket module
Launching the async server on a windows machine, generates the following error
2019-11-11 17:22:50,956 [DEBUG ] Using selector: SelectSelector
Error: reuse_port not supported by socket module
Traceback (most recent call last):
File "c:/Users/kiril.s/vsc-workspace/automation/sandbox/sb.py", line 95, in <module>
server.initialize_transports(enable_auth=True, enable_acct=True)
File "C:\Users\kiril.s\AppData\Local\Programs\Python\Python37\lib\asyncio\base_events.py", line 584, in run_until_complete
return future.result()
File "C:\Users\kiril.s\vsc-workspace\automation\.venv\lib\site-packages\pyrad\server_async.py", line 295, in initialize_transports
loop=self.loop
File "C:\Users\kiril.s\AppData\Local\Programs\Python\Python37\lib\asyncio\base_events.py", line 1223, in create_datagram_endpoint
_set_reuseport(sock)
File "C:\Users\kiril.s\AppData\Local\Programs\Python\Python37\lib\asyncio\base_events.py", line 90, in _set_reuseport
raise ValueError('reuse_port not supported by socket module')
ValueError: reuse_port not supported by socket module
As stated in events.py module
reuse_port tells the kernel to allow this endpoint to be bound to the same port as other existing endpoints are bound to, so long as they all set this flag when being created. This option is not supported on Windows and some UNIX's. If the :py:data:
~socket.SO_REUSEPORT
constant is not defined then this capability is unsupported.
This parameters defaults to true in server_async.py
Hello, is there any plan to resolve this issue? Both sync and async versions of the pyrad server are not compatible with Windows