Improve TCP blocking connection