summaryrefslogtreecommitdiff
path: root/src/modules/m_httpd.cpp
AgeCommit message (Collapse)Author
2006-09-15Fix crash on two objects trying to free each other at the same timebrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5263 e03df62e-2008-0410-955e-edbf42e46eb7
2006-09-15Fix memory leak toobrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5261 e03df62e-2008-0410-955e-edbf42e46eb7
2006-09-15Add timeouts to the http module. Two seperate timeouts, 60 seconds to ↵brain
receive headers, and 60 seconds after receipt of headers and sending of page, in which to time out the connection if the client doesnt close() as it should git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5260 e03df62e-2008-0410-955e-edbf42e46eb7
2006-09-15Annotationsbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5254 e03df62e-2008-0410-955e-edbf42e46eb7
2006-09-14Commit all the httpd patches i sneakily put in before 9am at the office :pbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5249 e03df62e-2008-0410-955e-edbf42e46eb7
2006-09-14Use gmtime() not localtime() as RFC2616 says dates sent by a http server ↵brain
must be GMT/UTC git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5248 e03df62e-2008-0410-955e-edbf42e46eb7
2006-09-14Remember to change state when sending error 400brain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5247 e03df62e-2008-0410-955e-edbf42e46eb7
2006-09-14Send error 400 when content-size is 0 or omitted for POSTbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5246 e03df62e-2008-0410-955e-edbf42e46eb7
2006-09-14Fix postdata stuffbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5245 e03df62e-2008-0410-955e-edbf42e46eb7
2006-09-14Only initialise request type oncebrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5244 e03df62e-2008-0410-955e-edbf42e46eb7
2006-09-14Properly read POSTDATAbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5243 e03df62e-2008-0410-955e-edbf42e46eb7
2006-09-13Todo: find out content-length, then read that much databrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5241 e03df62e-2008-0410-955e-edbf42e46eb7
2006-09-13Beginnings of postdata stuffbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5240 e03df62e-2008-0410-955e-edbf42e46eb7
2006-08-28Note: connect() cant time out for inspsockets in this commit. They'll sit in ↵brain
memory forever -- if you want something actually working properly wait for the next commit git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5040 e03df62e-2008-0410-955e-edbf42e46eb7
2006-08-11Just to mess with om's head, remove helperfuncs.h from everywherebrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4900 e03df62e-2008-0410-955e-edbf42e46eb7
2006-08-11Change to using Instance->Log (InspIRCd::Log) rather than log() macrobrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4880 e03df62e-2008-0410-955e-edbf42e46eb7
2006-08-11Now two types of log macro, log() and ilog(). log() assumes an InspIRCd ↵brain
object called ServerInstance, ilog() takes an InspIRCd object as first param. TODO: Run a regexp over these, using perl, to translate them into InspIRCd::Log calls and then eliminate the macro :) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4879 e03df62e-2008-0410-955e-edbf42e46eb7
2006-08-11Change to use InspIRCd::Time()brain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4874 e03df62e-2008-0410-955e-edbf42e46eb7
2006-08-11extern time_t TIME -> InspIRCd::Time()brain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4873 e03df62e-2008-0410-955e-edbf42e46eb7
2006-08-11ConfigReader and FileReader now take InspIRCd* to their constructorsbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4865 e03df62e-2008-0410-955e-edbf42e46eb7
2006-08-11None of the modules use an extern InspIRCd* any morebrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4863 e03df62e-2008-0410-955e-edbf42e46eb7
2006-08-10Last of Server:: methods moved to InspIRCd::. Server:: removed.brain
This will need a real good tidyup later, because now everything is in the right place, but its a mess because for now i threw them into place (e.g. space indenting, etc) Next on the todo: Make command handlers have a ServerInstance (gank!) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4861 e03df62e-2008-0410-955e-edbf42e46eb7
2006-08-10Note: FOR THE MOMENT, this is BROKEN. It wont run right until im done.brain
Changed Parameter for modules from Server* to InspIRCd*. TODO: Move remaining Server* Modules into InspIRCd* and remove class Server. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4859 e03df62e-2008-0410-955e-edbf42e46eb7
2006-08-09Move socket_ref and module_sockets vectors/arrays into InspIRCd*. These are ↵brain
public members, which InspSocket can modify. (eventually, this will be marshalled safely through some accessors). When constructing an InspSocket you must now provide an InspIRCd* instance to 'attach' the socket to. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4812 e03df62e-2008-0410-955e-edbf42e46eb7
2006-08-09ServerConfig extern moved into class InspIRCdbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4808 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-27Add VF_SERVICEPROVIDERbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4560 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-11Allow modules to change the content-type of the document (defaults to text/html)brain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4337 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-11Make it not b0rk on empty headersbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4336 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-11Make var constbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4334 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-11Stuff for adding extra headers to a response (for Authorization: and ↵brain
Location: etc) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4333 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-11This works now, m_httpd_stats.so prints 'chickens' on all pages except the indexbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4332 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-11Craq fixingbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4330 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-11Error code stuffbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4329 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-11Foulupsbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4328 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-11Craqbustersbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4326 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-11Event class for m_httpd.cppbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4325 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-11Change last vestiges of m_http.so -> m_httpd.sobrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4320 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-10Because people whined :(brain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4319 e03df62e-2008-0410-955e-edbf42e46eb7