dispatch_addconnection: use constant for repeated value
server_shutdown: avoid reading queue from stopped server