aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/m_httpd.cpp
diff options
context:
space:
mode:
authorGravatar brain2008-05-08 22:16:34 +0000
committerGravatar brain2008-05-08 22:16:34 +0000
commited57c2f7a7f5e270fda12e3d14377a339c5970d4 (patch)
treeebb1f692f0bddca344ec9049d04fdfc2fa6cc23b /src/modules/m_httpd.cpp
parentRemove here, too (diff)
Same tweak here
git-svn-id: http://svn.inspircd.org/repository/branches/1_1_stable@9672 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_httpd.cpp')
-rw-r--r--src/modules/m_httpd.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/modules/m_httpd.cpp b/src/modules/m_httpd.cpp
index bf8fee052..b7dd2b334 100644
--- a/src/modules/m_httpd.cpp
+++ b/src/modules/m_httpd.cpp
@@ -228,6 +228,7 @@ class HttpServerSocket : public InspSocket
{
InternalState = HTTP_SERVE_SEND_DATA;
SendHeaders(0, 400, "");
+ Instance->SE->WantWrite(this);
}
else
{
@@ -267,6 +268,7 @@ class HttpServerSocket : public InspSocket
if ((http_version != "HTTP/1.1") && (http_version != "HTTP/1.0"))
{
SendHeaders(0, 505, "");
+ Instance->SE->WantWrite(this);
}
else
{
@@ -274,6 +276,7 @@ class HttpServerSocket : public InspSocket
{
SendHeaders(index->ContentSize(), 200, "");
this->Write(index->Contents());
+ Instance->SE->WantWrite(this);
}
else
{
@@ -284,6 +287,7 @@ class HttpServerSocket : public InspSocket
if (!claimed)
{
SendHeaders(0, 404, "");
+ Instance->SE->WantWrite(this);
}
}
}
@@ -293,6 +297,12 @@ class HttpServerSocket : public InspSocket
{
SendHeaders(n->str().length(), response, extraheaders);
this->Write(n->str());
+ Instance->SE->WantWrite(this);
+ }
+
+ bool OnWriteReady()
+ {
+ return false;
}
};