summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/m_http_client.cpp3
-rw-r--r--src/modules/m_remoteinclude.cpp2
2 files changed, 3 insertions, 2 deletions
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();