Connect returns buffer and errors