Improve concurrency control in network connection