summaryrefslogtreecommitdiff
path: root/src/modules/m_httpd.cpp
AgeCommit message (Collapse)Author
2018-10-26Fix a bunch of harmless compiler warnings on recent GCC releases.Peter Powell
2018-10-06Use nodejs/http_parser instead of a homebrew parser.edef
2018-08-15Merge branch 'insp20' into master.Peter Powell
2018-08-07m_httpd: close the HTTP connection after serving a request.Peter Powell
We always send "Connection: Close" so this is the right behaviour according to section 8.1 of RFC 2616. Closes #1507.
2018-07-24Make more config stuff case insensitive.Peter Powell
2017-11-17Fix a ton of -Wsign-conversion warnings.Peter Powell
2017-09-12Get rid of irc::sockets::satoap().Peter Powell
This function is being misused in all but one scenario. It isn't really worth keeping IMO.
2017-09-03Convert a bunch of time-related config options to getDuration.Peter Powell
2017-07-12Add CXX11_OVERRIDE to overridden members that lack it.Peter Powell
This fixes a ton of warnings when building on compilers that default to C++11 or newer.
2016-08-24Check for errors after calling IOHookProvider::OnAccept()Attila Molnar
2016-08-08Keep multiple IOHookProvider references in class ListenSocketAttila Molnar
This adds the <bind:hook> config option which works together with <bind:ssl>
2016-08-08Add StreamSocket::GetModHook() for obtaining the IOHook belonging to a given ↵Attila Molnar
module Use it to simplify logic in all modules using or providing IOHooks
2015-05-01m_httpd Fix iteration in OnUnloadModule()Attila Molnar
2015-04-20Merge insp20Attila Molnar
2015-02-11m_httpd Remove now unused variable "claimed"Attila Molnar
2015-02-11Remove unused parameters from HTTPRequest constructorAttila Molnar
2015-02-11Convert the HTTPd request event to use the new cross-module event systemAttila Molnar
2015-02-11Convert the HTTPd ACL event to use the new cross-module event systemAttila Molnar
2015-01-10Reduce std::string::substr() usageAttila Molnar
substr() returns a new string while erase() and assign() modify the existing one
2014-12-10m_httpd On module unload close all connections hooked by the module being ↵Attila Molnar
unloaded
2014-11-03m_flashpolicyd, m_httpd Store sockets in a intrusive listAttila Molnar
2014-11-03m_flashpolicyd, m_httpd Handle timeouts using the Timer systemAttila Molnar
2014-11-03m_httpd Clean up HttpServerSocket constructorAttila Molnar
2014-11-03m_httpd Remove unused containerAttila Molnar
2014-11-03m_httpd Always timeout connections, set default timeout to 10 secondsAttila Molnar
2014-06-25Add parameter to InspIRCd::TimeString for UTC time formats.Peter Powell
Missing doc added by @attilamolnar
2014-06-25Add formatting to InspIRCd::TimeString; switch all code to use it.Peter Powell
m_httpd also now uses the correct timestamp format. Windows-specific fixes by @attilamolnar, original PR #849
2014-05-23Prefix all definitions in config.h to avoid potential collisions.Peter Powell
2014-04-07Merge insp20Attila Molnar
2014-03-25m_httpd Fix typo noticed by @SaberUKAttila Molnar
2014-01-22Split IOHook into IOHook and IOHookProviderAttila Molnar
Create one IOHook instance for each hooked socket which contains all the hook specific data and read/write/close functions, removing the need for the "issl_session" array in SSL modules. Register instances of the IOHookProvider class in the core and use them to create specialized IOHook instances (OnConnect/OnAccept). Remove the OnHookIO hook, add a dynamic reference to ListenSocket that points to the hook provider (if any) to use for incoming connections on that socket. For outgoing connections modules still have to find the IOHookProvider they want to use themselves but instead of calling AddIOHook(hookprov), now they have to call IOHookProvider::OnConnect() after the connection has been established.
2014-01-21Merge insp20Attila Molnar
2014-01-20m_httpd Add timeout option; remove timed out connectionsAttila Molnar
2013-09-09m_httpd Close all open http sockets on unloadattilamolnar
2013-09-08Automatically register ServiceProviders created by modulesattilamolnar
2013-08-15Remove $ModDep commentsattilamolnar
2013-08-04Automatically attach modules to eventsattilamolnar
2013-08-04Change the syntax of FOREACH macros to be less dumb.Adam
2013-08-04Change modules to use the MODNAME constant when logging.Peter Powell
The majority of modules were logging with their module name as the log type. There was a few places which were logging to a non-name type but, with the exception of CONFIG, those messages are so uncommon that it doesn't make sense to use a seperate type for them.
2013-07-04Remove $Core and $Mod* comments apart from $ModDep.Peter Powell
2013-06-07Change the API of m_httpd to be dynamic_reference-basedattilamolnar
2013-06-07Create IOHook interface (extracted from Module)attilamolnar
2013-05-19Fix spacing in calls to LogManager::Log.Peter Powell
2013-05-15Tidy up keywords on module methods.Peter Powell
- Remove virtual keyword from a ton of methods which don't need it. - Add override keyword to a ton of methods which do need it.
2013-04-12Tidy up source files:Peter Powell
- Use #pragma once instead of include guards. - Move header files in src/modules to include/modules. - Fixed various spacing issues.
2013-04-12Add LOG_ prefix to the log level enum values.Peter Powell
2013-04-01Whitespace and empty destructor removal, minor coding style changesattilamolnar
2013-01-28Use a better server name in m_httpd.Peter Powell
2012-12-02Attach to events and register services in init()attilamolnar
2012-09-23m_httpd Accept POST requests only when the value for Content-Length is ↵attilamolnar
greater than zero