- if (WaitFd(Fd,true,TimeOut) == false)
- return _error->Error("Could not connect to %s:%s (%s), "
- "connection timed out",Host.c_str(),Service,Name);
+ if (WaitFd(Fd,true,TimeOut) == false) {
+ bad_addr.insert(bad_addr.begin(), string(Name));
+ Owner->SetFailReason("Timeout");
+ return _error->Error(_("Could not connect to %s:%s (%s), "
+ "connection timed out"),Host.c_str(),Service,Name);
+ }