As I was updating text for #333, I noticed that the Listener object delivers connections, but doesn't provide a particular way to reject connections. Based on existing text, I assume that ReceivedConnection delivers a connection once the TLS server handshake is complete. Some implementation may want to rate limit, or modify/block inbound connections.
Should we have some event that lets applications handle inbound connections before they are ready?
Of course, for TLS, we can rely on callback handlers set for the handshake, but that requires each protocol to do this potentially.
As I was updating text for #333, I noticed that the Listener object delivers connections, but doesn't provide a particular way to reject connections. Based on existing text, I assume that ReceivedConnection delivers a connection once the TLS server handshake is complete. Some implementation may want to rate limit, or modify/block inbound connections.
Should we have some event that lets applications handle inbound connections before they are ready?
Of course, for TLS, we can rely on callback handlers set for the handshake, but that requires each protocol to do this potentially.