Update forwarder.cc

repair socket error process