From 07dc7793d01039b7569bfb63b0dd1fbcea5f53d8 Mon Sep 17 00:00:00 2001 From: brain Date: Mon, 10 Jul 2006 21:39:56 +0000 Subject: Add timeouts etc git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4311 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_http.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') diff --git a/src/modules/m_http.cpp b/src/modules/m_http.cpp index dbd1fbecd..fa31114ff 100644 --- a/src/modules/m_http.cpp +++ b/src/modules/m_http.cpp @@ -26,6 +26,7 @@ using namespace std; /* $ModDesc: Provides HTTP serving facilities to modules */ static Server *Srv; +extern time_t TIME; enum HttpState { @@ -80,6 +81,9 @@ class HttpSocket : public InspSocket /* Headers are complete */ InternalState = HTTP_SERVE_SEND_DATA; this->Write("

COWS.

"); + + this->timeout_end = TIME + 1; + this->SetState(I_CONNECTING); } } return true; -- cgit v1.2.3