Set socket mode in ws dataready
Set SO_REUSEADDR in listening sockets