handle socker error
client use non block