chiark / gitweb /
server/: Record port number with UDP socket, rather than querying.
authorMark Wooding <mdw@distorted.org.uk>
Sat, 12 May 2018 09:44:14 +0000 (10:44 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Fri, 25 Jan 2019 12:10:31 +0000 (12:10 +0000)
The old `p_port' function queried getsockname(2) at runtime, and bailed
in the (very unlikely) event that it failed.  Avoid this situation by
recording the port number when the socket is set up and just using the
recorded value when it's needed.

This was the only remaining abnormal exit after the server has started.


No differences found