update sg socket