Cache the remote endpoint in connections
The idea is to avoid a TSAN reported race on is_open in getRemoteEndpoint by caching the remote endpoint in the connection object. Another advantage is the remote endpoint will be still available after close. Note it is possible too to overload asyncAccept to set the endpoint but a priori this should not be required.
Edited by Francis Dupont