dcc56bf748
When using the copy constructor of BNetEndpoint the socket of the original endpoint gets dup'ed. The Accept() method later directly reset the fSocket member of the newly created BNetEndpoint to the socket returned by accept(). The socket dup'ed by the copy constructor was therefore leaked. Of course dup'ing the socket and copying the local and remote addresses is superfluous in the accept case, as these members all get set to new values. To reduce that overhead there is now a new private constructor that directly gets the final socket and remote and local address. |
||
---|---|---|
.. | ||
build | ||
compatibility | ||
config | ||
cpp | ||
glibc | ||
libs | ||
os | ||
posix | ||
private | ||
tools |