From 8d278b5d9cba6c5b41477994e7a567c9218d2c3f Mon Sep 17 00:00:00 2001 From: brain Date: Mon, 12 Nov 2007 01:33:13 +0000 Subject: Argh, i give up git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8594 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_http_client.cpp | 3 ++- src/modules/m_remoteinclude.cpp | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'src/modules') diff --git a/src/modules/m_http_client.cpp b/src/modules/m_http_client.cpp index a75cfd1b2..d29165bff 100644 --- a/src/modules/m_http_client.cpp +++ b/src/modules/m_http_client.cpp @@ -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) diff --git a/src/modules/m_remoteinclude.cpp b/src/modules/m_remoteinclude.cpp index d385e194e..aa5370c5c 100644 --- a/src/modules/m_remoteinclude.cpp +++ b/src/modules/m_remoteinclude.cpp @@ -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(); -- cgit v1.2.3