socket servers config and optimization