Ok, this works except for it wont resolve hosts before full startup. argh why?!

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8580 e03df62e-2008-0410-955e-edbf42e46eb7
This commit is contained in:
brain 2007-11-11 20:23:30 +00:00
parent 4cfe4cbc62
commit 06f15a7fd0
2 changed files with 3 additions and 3 deletions

View File

@ -150,10 +150,13 @@ bool HTTPSocket::DoRequest(HTTPClientRequest *req)
this->port = url.port;
strlcpy(this->host, url.domain.c_str(), MAXBUF);
/*
bool cached;
HTTPResolver* r = new HTTPResolver(this, Server, url.domain, cached, (Module*)Mod);
Instance->AddResolver(r, cached);
return true;
*/
Connect(url.domain);
return true;
}

View File

@ -38,7 +38,6 @@ EPollEngine::~EPollEngine()
bool EPollEngine::AddFd(EventHandler* eh)
{
ServerInstance->Log(DEBUG,"Add new fd: %d", eh->GetFd());
int fd = eh->GetFd();
if ((fd < 0) || (fd > MAX_DESCRIPTORS))
{
@ -122,8 +121,6 @@ int EPollEngine::DispatchEvents()
int errcode;
int i = epoll_wait(EngineHandle, events, MAX_DESCRIPTORS, 1000);
ServerInstance->Log(DEBUG,"DispatchEvents num events = %d of %d", i, CurrentSetSize);
for (int j = 0; j < i; j++)
{
if (events[j].events & EPOLLHUP)