Adding unix code error in socket error msgs.
Adding testing to timeout.