]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Argh, i give up
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>
Mon, 12 Nov 2007 01:33:13 +0000 (01:33 +0000)
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>
Mon, 12 Nov 2007 01:33:13 +0000 (01:33 +0000)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8594 e03df62e-2008-0410-955e-edbf42e46eb7

src/configreader.cpp
src/inspircd.cpp
src/inspsocket.cpp
src/modules/m_http_client.cpp
src/modules/m_remoteinclude.cpp

index 4cdfcaf28b54b543adba889b16f7e8457c35ac05..47c8ec234e164047149133273c31376b32317e99 100644 (file)
@@ -1283,12 +1283,6 @@ void ServerConfig::Complete(const std::string &filename, bool error)
                        x->second = NULL;
                        FileErrors++;
                }
-               else
-               {
-                       ServerInstance->Log(DEBUG,"Recursively follow conf %s", x->first.c_str());
-                       LoadConf(newconfig, x->first.c_str(), errstr, 0, x->second);
-                       StartDownloads();
-               }
                TotalDownloaded++;
        }
 
@@ -1297,7 +1291,7 @@ void ServerConfig::Complete(const std::string &filename, bool error)
 
 void ServerConfig::StartDownloads()
 {
-       ServerInstance->Log(DEBUG,"StartDownloads() size=%d", IncludedFiles.size());
+       ServerInstance->Log(DEBUG,"((((((((((((((((((((((((( StartDownloads() size=%d )))))))))))))))))))))))))))))))))))))", IncludedFiles.size());
 
        /* Reads all local files into the IncludedFiles map, then initiates sockets for the remote ones */
        for (std::map<std::string, std::istream*>::iterator x = IncludedFiles.begin(); x != IncludedFiles.end(); ++x)
@@ -1305,6 +1299,8 @@ void ServerConfig::StartDownloads()
                if (CompletedFiles.find(x->first) != CompletedFiles.end())
                        continue;
 
+               ServerInstance->Log(DEBUG,"StartDownloads File: %s", x->first.c_str());
+
                std::string file = x->first;
                if ((file[0] == '/') || (file.substr(0, 7) == "file://"))
                {
index 21c97a7038e44a75258f5626377575290d200f5c..923613002e8562c6f02d2f2ff5b6f1e66dff9689 100644 (file)
@@ -488,9 +488,6 @@ InspIRCd::InspIRCd(int argc, char** argv)
 
        if (Config->FileErrors)
        {
-               /* One or more file download/access errors, do not
-                * proceed to second pass
-                */
                for (std::map<std::string, std::istream*>::iterator x = Config->IncludedFiles.begin(); x != Config->IncludedFiles.end(); ++x)
                {
                        if (!x->second)
@@ -718,6 +715,7 @@ void InspIRCd::BufferedSocketCull()
 {
        for (std::map<BufferedSocket*,BufferedSocket*>::iterator x = SocketCull.begin(); x != SocketCull.end(); ++x)
        {
+               Log(DEBUG,"Cull socket");
                SE->DelFd(x->second);
                x->second->Close();
                delete x->second;
index 6277dccf4a82b8dac4f2327bcce67ba9c429b84d..9ab9e80c1c09487bf5a1857ece6ae736eb76ef86 100644 (file)
@@ -536,6 +536,8 @@ bool BufferedSocket::FlushWriteBuffer()
 
 void SocketTimeout::Tick(time_t)
 {
+       ServerInstance->Log(DEBUG,"SocketTimeout::Tick");
+
        if (ServerInstance->SE->GetRef(this->sfd) != this->sock)
                return;
 
index a75cfd1b2cb6d0daaea0fb80848488cd9bbab5cd..d29165bffb64baa26f380d8eef089600c964aa92 100644 (file)
@@ -123,6 +123,7 @@ HTTPSocket::HTTPSocket(InspIRCd *Instance, ModuleHTTPClient *Mod)
        this->port = 80;
        response = NULL;
        closed = false;
+       timeout_val = 10;
 }
 
 HTTPSocket::~HTTPSocket()
@@ -296,7 +297,7 @@ bool HTTPSocket::OnConnected()
 
 bool HTTPSocket::OnDataReady()
 {
-       Instance->Log(DEBUG,"HTTPSocket::OnDataReady()");
+       Instance->Log(DEBUG,"HTTPSocket::OnDataReady() for %s", url.url.c_str());
        char *data = this->Read();
 
        if (!data)
index d385e194ebec1515c08e243f3b8f41f707bbec8d..aa5370c5c932bba6e653f5fe4741d625fad04e18 100644 (file)
@@ -92,7 +92,7 @@ class ModuleRemoteInclude : public Module
                        Module* target = ServerInstance->Modules->Find("m_http_client.so");
                        if (target)
                        {
-                               ServerInstance->Log(DEBUG,"Claiming schema http://, making fetch request");
+                               ServerInstance->Log(DEBUG,"Claiming schema http://, making fetch request for %s", name.c_str());
 
                                HTTPClientRequest* req = new HTTPClientRequest(ServerInstance, this, target, name);
                                req->Send();