Peer address of TCP connection
huang-jl opened this issue · 0 comments
huang-jl commented
Issue
For now, when an endpoint accepts a connection, it will wait for the peer to send the real peer address (i.e. binding address). Later the endpoint will save this real peer address instead of the socket's remote address:
However, for example, when two endpoints R1 and R2 want to connect to S, R1 and R2 may bind to the same address like 0.0.0.0:xxxx
. In this situation, S cannot distinguishes R1 and R2's connection.