diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-11-11 20:23:30 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-11-11 20:23:30 +0000 |
commit | 06f15a7fd084bae73e34e6512c9b9903f1e2697b (patch) | |
tree | 57d477bc2956963d8c2c49a99e05655825fd1e14 | |
parent | 4cfe4cbc62dfca59dba74f0e6811fd09e31609df (diff) |
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
-rw-r--r-- | src/modules/m_http_client.cpp | 3 | ||||
-rw-r--r-- | src/socketengines/socketengine_epoll.cpp | 3 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/modules/m_http_client.cpp b/src/modules/m_http_client.cpp index 62dfe6831..6a72d4eee 100644 --- a/src/modules/m_http_client.cpp +++ b/src/modules/m_http_client.cpp @@ -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; } diff --git a/src/socketengines/socketengine_epoll.cpp b/src/socketengines/socketengine_epoll.cpp index 89b1ea1ef..fc806e10c 100644 --- a/src/socketengines/socketengine_epoll.cpp +++ b/src/socketengines/socketengine_epoll.cpp @@ -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) |