try to make socket non blocking