mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-11 11:39:02 -04:00
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:
parent
4cfe4cbc62
commit
06f15a7fd0
@ -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;
|
||||
}
|
||||
|
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user