andrewthad / rotera

Persistent rotating queue
BSD 3-Clause "New" or "Revised" License
8 stars 1 forks source link

what does this error mean? #13

Closed chessai closed 5 years ago

chessai commented 5 years ago
Jun 11 11:59:39 chessai-kudu nqviirq1byk0fms7sarnxwvmhy154r28-unit-script-rotera-start[2337]: rotera-server: thread blocked indefinitely in an MVar operation
Jun 11 11:59:38 chessai-kudu nqviirq1byk0fms7sarnxwvmhy154r28-unit-script-rotera-start[2337]: rotera-server: SocketEphemeralPortsExhausted
chessai commented 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)
chessai commented 5 years ago

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.