#endif
}
+ SocketEngine::SetReuse(fd);
+ int rv = SocketEngine::Bind(this->fd, bind_to);
+ if (rv >= 0)
+ rv = SocketEngine::Listen(this->fd, ServerInstance->Config->MaxConn);
+
if (bind_to.family() == AF_UNIX)
{
const std::string permissionstr = tag->getString("permissions");
chmod(bind_to.str().c_str(), permissions);
}
- SocketEngine::SetReuse(fd);
- int rv = SocketEngine::Bind(this->fd, bind_to);
- if (rv >= 0)
- rv = SocketEngine::Listen(this->fd, ServerInstance->Config->MaxConn);
-
// Default defer to on for TLS listeners because in TLS the client always speaks first
int timeout = tag->getDuration("defer", (tag->getString("ssl").empty() ? 0 : 3));
if (timeout && !rv)