[sockets] Fixing and changing sockets