socket commit first