By default, this asyncio.start_server() method will create a list of socket objects usually for both IPv4 and IPv6 (if possible) and do not set keepalive option. if I want I can create a socket object by myself and set keepalive option for it, then pass it in start_server(), but if so, I will not be able to start a server which listens on both IPv4 and IPv6 addresses.
I hope we can add a keepalive parameter for asyncio.start_server() or do something else to make things easier.
Linked PRs
By default, this
asyncio.start_server()method will create a list of socket objects usually for both IPv4 and IPv6 (if possible) and do not set keepalive option. if I want I can create a socket object by myself and set keepalive option for it, then pass it instart_server(), but if so, I will not be able to start a server which listens on both IPv4 and IPv6 addresses.I hope we can add a keepalive parameter for
asyncio.start_server()or do something else to make things easier.Linked PRs
keep_alivekeyword parameter forAbstractEventLoop.create_server()andBaseEventLoop.create_server()#112485