update socket management