Open
Description
Currently, the standard way to listen on a socket is to call addPort()
, but from recent requests, this API is too limited. I would like to explore some ideas for expanding this functionality. Specifically:
- Make a standard way to add multiple ports to a single server.
- Make it possible to listen on things other than ports, in particular
SocketAddress
es. - Make it possible to add more ports / sockets after a Server has been built.
- This would effectively allow a server to add ports after
start()
- Maybe allow servers to gracefully close ports they started on.
- Support having no listening ports on the builder. This would mean adding a ServerBuilder ctor that has no ports at all.
- This would effectively allow a server to add ports after
This issue is more exploratory rather than mandatory. Right now the request is just to listen on multiple ports, but we should be careful to not add overlapping APIs (such as on both Server and ServerBuilder).
cc: @ejona86
Metadata
Metadata
Assignees
Labels
No labels