diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-07-10 21:39:56 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-07-10 21:39:56 +0000 |
commit | 07dc7793d01039b7569bfb63b0dd1fbcea5f53d8 (patch) | |
tree | 0b49b6921e3d5f1f1ac303709d76ff6c8f83756d /src | |
parent | a3b853420e09d9b7c276bafc67281a74c3f24e6f (diff) |
Add timeouts etc
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4311 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r-- | src/modules/m_http.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
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("<HTML><H1>COWS.</H1></HTML>"); + + this->timeout_end = TIME + 1; + this->SetState(I_CONNECTING); } } return true; |