Closed chessai closed 5 years ago
from sockets:
The port number was specified as zero, but upon attempting to bind to an ephemeral port, it was determined that all port numbers numbers in the ephemeral port range are currently in use. (EADDRINUSE with unspecified port)
we had a discussion about this. an error in sockets where it flipped the interpretation of EADDRINUSE was occurring. the actual error would say that the socket was already in use, even though i was restarting. apparently the kernel can keep sockets open on processes that failed to close them. since i was killing rotera with a hangup (kill -HUP
), and not SIGINT, it was failing to gracefully shutdown.