Hi, 

While I was fighting with netcat,I found that there is no "SO_REUSEADDR" flag on the socket used by livestatus.

So each time a "shinken restart" is done, we have to wait that the system free the socket to get the new module up and running.

Adding 'server.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)' before 'server.bind' solves that.

Regards

Olivier