prosody.git
15 years agonet.httpserver: Fix traceback when sending response to a destroyed request
Matthew Wild [Thu, 23 Apr 2009 20:04:56 +0000 (21:04 +0100)]
net.httpserver: Fix traceback when sending response to a destroyed request

15 years agonet.httpserver: Don't log the response body (can be binary data...)
Matthew Wild [Thu, 23 Apr 2009 20:04:07 +0000 (21:04 +0100)]
net.httpserver: Don't log the response body (can be binary data...)

15 years agoxmlhandlers: Fix tag pattern again for the default namespace
Matthew Wild [Thu, 23 Apr 2009 20:03:24 +0000 (21:03 +0100)]
xmlhandlers: Fix tag pattern again for the default namespace

15 years agomod_bosh: Put dummy authid in session creation response to keep JSJaC happy
Matthew Wild [Thu, 23 Apr 2009 02:27:22 +0000 (03:27 +0100)]
mod_bosh: Put dummy authid in session creation response to keep JSJaC happy

15 years agomod_bosh: Add log message for clients connecting to unknown host
Matthew Wild [Thu, 23 Apr 2009 02:25:48 +0000 (03:25 +0100)]
mod_bosh: Add log message for clients connecting to unknown host

15 years agomod_bosh: Fix nil indexing when client connects to unknown host
Matthew Wild [Thu, 23 Apr 2009 02:25:11 +0000 (03:25 +0100)]
mod_bosh: Fix nil indexing when client connects to unknown host

15 years agocore.loggingmanager: Reinstating global log() function
Matthew Wild [Thu, 23 Apr 2009 01:55:31 +0000 (02:55 +0100)]
core.loggingmanager: Reinstating global log() function

15 years agomod_posix: Remove some debug coooooooooode
Matthew Wild [Wed, 22 Apr 2009 20:42:19 +0000 (21:42 +0100)]
mod_posix: Remove some debug coooooooooode

15 years agomod_posix: Integrate with loggingmanager, register syslog sink, remove redundant...
Matthew Wild [Wed, 22 Apr 2009 19:01:19 +0000 (20:01 +0100)]
mod_posix: Integrate with loggingmanager, register syslog sink, remove redundant logging code

15 years agomod_posix: Remove pidfile on exit
Matthew Wild [Wed, 22 Apr 2009 18:59:58 +0000 (19:59 +0100)]
mod_posix: Remove pidfile on exit

15 years agocore.loggingmanager: Refactoring, converted to a module. Now possible to register...
Matthew Wild [Wed, 22 Apr 2009 18:49:58 +0000 (19:49 +0100)]
core.loggingmanager: Refactoring, converted to a module. Now possible to register additional sink types (think syslog) from other modules

15 years agoutil.set: Add set.xor() to get a set consisting of items not in both sets
Matthew Wild [Wed, 22 Apr 2009 17:03:42 +0000 (18:03 +0100)]
util.set: Add set.xor() to get a set consisting of items not in both sets

15 years agoutil.set: Add set:empty() to discover if the set is the empty set
Matthew Wild [Wed, 22 Apr 2009 17:03:02 +0000 (18:03 +0100)]
util.set: Add set:empty() to discover if the set is the empty set

15 years agoutil.set: Add metatable to sets to allow +, -, /, ==, tostring and to double as iterators
Matthew Wild [Wed, 22 Apr 2009 17:00:45 +0000 (18:00 +0100)]
util.set: Add metatable to sets to allow +, -, /, ==, tostring and to double as iterators

15 years agoutil.array: Add array.collect() to collect results from iterators into an array,...
Matthew Wild [Wed, 22 Apr 2009 16:46:17 +0000 (17:46 +0100)]
util.array: Add array.collect() to collect results from iterators into an array, and use module() to correctly set the module name

15 years agoprosody: Fire events during server shutdown process
Matthew Wild [Tue, 21 Apr 2009 21:05:21 +0000 (22:05 +0100)]
prosody: Fire events during server shutdown process

15 years agocore.loggingmanager: Add default logging settings (to console) and fill out code...
Matthew Wild [Tue, 21 Apr 2009 20:10:42 +0000 (21:10 +0100)]
core.loggingmanager: Add default logging settings (to console) and fill out code for adding sinks which catch all sources

15 years agocore.loggingmanager: Filled out most code, and cleaned up
Matthew Wild [Tue, 21 Apr 2009 19:30:29 +0000 (20:30 +0100)]
core.loggingmanager: Filled out most code, and cleaned up

15 years agoutil.logger: Fix for attempting to call a table
Matthew Wild [Tue, 21 Apr 2009 19:29:38 +0000 (20:29 +0100)]
util.logger: Fix for attempting to call a table

15 years agoprosody: Remove logging code and instead load core.loggingmanager to set up logging
Matthew Wild [Tue, 21 Apr 2009 02:38:41 +0000 (03:38 +0100)]
prosody: Remove logging code and instead load core.loggingmanager to set up logging

15 years agocore.loggingmanager: A new manager (yay!) to manage log output
Matthew Wild [Tue, 21 Apr 2009 02:37:49 +0000 (03:37 +0100)]
core.loggingmanager: A new manager (yay!) to manage log output

15 years agoutil.logger: Revamped logger library, but backwards-compatible for users of logger...
Matthew Wild [Tue, 21 Apr 2009 02:18:13 +0000 (03:18 +0100)]
util.logger: Revamped logger library, but backwards-compatible for users of logger.init()

15 years agocore.s2smanager: Buffer data sent before connection
Matthew Wild [Mon, 20 Apr 2009 21:14:31 +0000 (22:14 +0100)]
core.s2smanager: Buffer data sent before connection

15 years agocore.s2smanager: Logging improvements
Matthew Wild [Mon, 20 Apr 2009 21:13:09 +0000 (22:13 +0100)]
core.s2smanager: Logging improvements

15 years agonet.adns: Call handler for records already cached
Matthew Wild [Sat, 18 Apr 2009 16:48:30 +0000 (17:48 +0100)]
net.adns: Call handler for records already cached

15 years agocomponentmanager: Set host.connected = nil when deregistering a component so that...
Matthew Wild [Sat, 18 Apr 2009 13:18:50 +0000 (14:18 +0100)]
componentmanager: Set host.connected = nil when deregistering a component so that we fully restore it when we reload

15 years agocore.xmlhandlers: expat is the XML parser, not us. Don't reject valid XML.
Matthew Wild [Sat, 18 Apr 2009 03:06:41 +0000 (04:06 +0100)]
core.xmlhandlers: expat is the XML parser, not us. Don't reject valid XML.

15 years agoMerge
Matthew Wild [Fri, 17 Apr 2009 15:16:17 +0000 (16:16 +0100)]
Merge

15 years agoprosody: Simple whitespace fix in error output
Matthew Wild [Fri, 17 Apr 2009 15:15:16 +0000 (16:15 +0100)]
prosody: Simple whitespace fix in error output

15 years agocore.configmanager: Fire event when (re)loading config file
Matthew Wild [Fri, 17 Apr 2009 15:14:20 +0000 (16:14 +0100)]
core.configmanager: Fire event when (re)loading config file

15 years agonet.server: Fix potential nil handler usage
Matthew Wild [Fri, 17 Apr 2009 15:11:11 +0000 (16:11 +0100)]
net.server: Fix potential nil handler usage

15 years agoAllow setting LFLAGS with ./configure --lflags=
Matthew Wild [Tue, 14 Apr 2009 19:07:45 +0000 (20:07 +0100)]
Allow setting LFLAGS with ./configure --lflags=

15 years agomod_debug: Set default interface to 127.0.0.1
Matthew Wild [Sun, 12 Apr 2009 18:05:55 +0000 (19:05 +0100)]
mod_debug: Set default interface to 127.0.0.1

15 years agonet.server: Simple logging fix
Matthew Wild [Sun, 12 Apr 2009 16:03:34 +0000 (17:03 +0100)]
net.server: Simple logging fix

15 years agocore.s2smanager: Don't initiate dialback if we don't have a connection yet
Matthew Wild [Sun, 12 Apr 2009 12:14:45 +0000 (13:14 +0100)]
core.s2smanager: Don't initiate dialback if we don't have a connection yet

15 years agonet.server: Remove some debug code which slipped through
Matthew Wild [Sun, 12 Apr 2009 02:06:22 +0000 (03:06 +0100)]
net.server: Remove some debug code which slipped through

15 years agoMakefiles: Add signal.so to install targets
Matthew Wild [Sun, 12 Apr 2009 02:02:51 +0000 (03:02 +0100)]
Makefiles: Add signal.so to install targets

15 years agoprosody: Add prosody_shutdown() function to initiate a server shutdown, add code...
Matthew Wild [Sun, 12 Apr 2009 01:59:09 +0000 (02:59 +0100)]
prosody: Add prosody_shutdown() function to initiate a server shutdown, add code to gracefully close connections before stopping

15 years agomod_posix: Allow logging and pidfile options to take effect without needing to daemon...
Matthew Wild [Sun, 12 Apr 2009 01:57:52 +0000 (02:57 +0100)]
mod_posix: Allow logging and pidfile options to take effect without needing to daemonize. Add the ability to catch SIGTERM.

15 years agoxmppserver_listener: Add session:close() method to outgoing s2s connections too
Matthew Wild [Sun, 12 Apr 2009 01:55:49 +0000 (02:55 +0100)]
xmppserver_listener: Add session:close() method to outgoing s2s connections too

15 years agonet.server: Add server.setquitting() to gracefully quit the socket loop
Matthew Wild [Sun, 12 Apr 2009 01:54:45 +0000 (02:54 +0100)]
net.server: Add server.setquitting() to gracefully quit the socket loop

15 years agoutil.lsignal: Add lsignal library for catching POSIX signals
Matthew Wild [Sun, 12 Apr 2009 01:53:50 +0000 (02:53 +0100)]
util.lsignal: Add lsignal library for catching POSIX signals

15 years agoMakefiles, util.signal: Add lsignal library for catching POSIX signals
Matthew Wild [Sun, 12 Apr 2009 01:53:00 +0000 (02:53 +0100)]
Makefiles, util.signal: Add lsignal library for catching POSIX signals

15 years agocomponentmanager: Set core_route_stanza after stanza_router is loaded
Matthew Wild [Sat, 11 Apr 2009 22:23:35 +0000 (23:23 +0100)]
componentmanager: Set core_route_stanza after stanza_router is loaded

15 years agocomponentmanager: Use core_route_stanza to reply in the default component
Matthew Wild [Sat, 11 Apr 2009 22:15:04 +0000 (23:15 +0100)]
componentmanager: Use core_route_stanza to reply in the default component

15 years agocomponentmanager: Restore default component when unregistering
Matthew Wild [Sat, 11 Apr 2009 21:25:32 +0000 (22:25 +0100)]
componentmanager: Restore default component when unregistering

15 years agocomponentmanager: Small logging fix
Matthew Wild [Sat, 11 Apr 2009 21:24:44 +0000 (22:24 +0100)]
componentmanager: Small logging fix

15 years agocomponentmanager: Improve default component stanza handler
Matthew Wild [Sat, 11 Apr 2009 21:23:49 +0000 (22:23 +0100)]
componentmanager: Improve default component stanza handler

15 years agomod_component: Deregister component on disconnect
Matthew Wild [Sat, 11 Apr 2009 21:22:24 +0000 (22:22 +0100)]
mod_component: Deregister component on disconnect

15 years agonet.adns: Flush buffer after sending DNS request
Matthew Wild [Sat, 11 Apr 2009 15:13:40 +0000 (16:13 +0100)]
net.adns: Flush buffer after sending DNS request

15 years agomod_component: Update for new net_activate_ports
Matthew Wild [Fri, 10 Apr 2009 09:49:58 +0000 (10:49 +0100)]
mod_component: Update for new net_activate_ports

15 years agoAllow config to specify listening interfaces
Matthew Wild [Fri, 10 Apr 2009 09:49:32 +0000 (10:49 +0100)]
Allow config to specify listening interfaces

15 years agoRemove more debugging code which was accidentally committed (don't trust hg)
Matthew Wild [Fri, 10 Apr 2009 09:38:04 +0000 (10:38 +0100)]
Remove more debugging code which was accidentally committed (don't trust hg)

15 years agocore.s2smanager: Remove some debugging
Matthew Wild [Fri, 10 Apr 2009 09:36:01 +0000 (10:36 +0100)]
core.s2smanager: Remove some debugging

15 years agoMerge
Matthew Wild [Fri, 10 Apr 2009 09:31:47 +0000 (10:31 +0100)]
Merge

15 years agoMerge
Matthew Wild [Fri, 10 Apr 2009 09:31:38 +0000 (10:31 +0100)]
Merge

15 years agonet.adns: Catch errors in DNS response callbacks
Matthew Wild [Fri, 10 Apr 2009 09:30:50 +0000 (10:30 +0100)]
net.adns: Catch errors in DNS response callbacks

15 years agoprosody: Don't look to use SSL when LuaSec not available (thanks Florob)
Matthew Wild [Thu, 9 Apr 2009 17:48:28 +0000 (18:48 +0100)]
prosody: Don't look to use SSL when LuaSec not available (thanks Florob)

15 years agoMerge
Matthew Wild [Wed, 8 Apr 2009 22:20:45 +0000 (23:20 +0100)]
Merge

15 years agosessionmanager, componentmanager: Fix some wacky indentation (thanks greyback!)
Matthew Wild [Wed, 8 Apr 2009 22:20:22 +0000 (23:20 +0100)]
sessionmanager, componentmanager: Fix some wacky indentation (thanks greyback!)

15 years agomod_debug: Run on a different port, and use a different listener to mod_console
Matthew Wild [Wed, 8 Apr 2009 20:14:48 +0000 (21:14 +0100)]
mod_debug: Run on a different port, and use a different listener to mod_console

15 years agoAutomated merge with http://waqas.ath.cx:8000/
Matthew Wild [Wed, 8 Apr 2009 19:19:55 +0000 (20:19 +0100)]
Automated merge with http://waqas.ath.cx:8000/

15 years agomod_muc: Fix malformed presence stanzas (thanks elmex)
Matthew Wild [Wed, 8 Apr 2009 19:19:09 +0000 (20:19 +0100)]
mod_muc: Fix malformed presence stanzas (thanks elmex)

15 years agoutil.stanza: stanza:reset() method to reset building state
Matthew Wild [Wed, 8 Apr 2009 19:12:40 +0000 (20:12 +0100)]
util.stanza: stanza:reset() method to reset building state

15 years agocore.s2smanager: Look away... wait for it... now! Hopefully s2s should be back to...
Matthew Wild [Wed, 8 Apr 2009 19:01:53 +0000 (20:01 +0100)]
core.s2smanager: Look away... wait for it... now! Hopefully s2s should be back to normal.

15 years agonet.server: Ensure some logging parameters are strings
Matthew Wild [Wed, 8 Apr 2009 10:22:03 +0000 (11:22 +0100)]
net.server: Ensure some logging parameters are strings

15 years agocomponentmanager: Reply with service-unavailable for unconnected components
Matthew Wild [Wed, 8 Apr 2009 10:21:21 +0000 (11:21 +0100)]
componentmanager: Reply with service-unavailable for unconnected components

15 years agocore.s2smanager: Check for valid host and port before attempting connection
Matthew Wild [Mon, 6 Apr 2009 22:43:48 +0000 (23:43 +0100)]
core.s2smanager: Check for valid host and port before attempting connection

15 years agoFixed: Send correct error reply for IQs directed at unavailable resources
Waqas Hussain [Mon, 6 Apr 2009 21:32:49 +0000 (02:32 +0500)]
Fixed: Send correct error reply for IQs directed at unavailable resources

15 years agoFixed: Issue with presence error routing
Waqas Hussain [Mon, 6 Apr 2009 21:24:37 +0000 (02:24 +0500)]
Fixed: Issue with presence error routing

15 years agosessionmanager, s2smanager, mod_component: Send reply </stream:stream> when client...
Matthew Wild [Sun, 5 Apr 2009 19:06:39 +0000 (20:06 +0100)]
sessionmanager, s2smanager, mod_component: Send reply </stream:stream> when client closes stream

15 years agonet.httpserver: Don't log that a request has been left open if it is destroyed
Matthew Wild [Sun, 5 Apr 2009 18:42:56 +0000 (19:42 +0100)]
net.httpserver: Don't log that a request has been left open if it is destroyed

15 years agoutil.dataforms: Allow form layouts to specify default values for fields
Matthew Wild [Sun, 5 Apr 2009 18:42:01 +0000 (19:42 +0100)]
util.dataforms: Allow form layouts to specify default values for fields

15 years agoutil.dataforms: Set form type when generating a form
Matthew Wild [Sun, 5 Apr 2009 18:41:24 +0000 (19:41 +0100)]
util.dataforms: Set form type when generating a form

15 years agoutil.dataforms: Support for retriving the field value data from forms
Matthew Wild [Sat, 4 Apr 2009 17:08:35 +0000 (18:08 +0100)]
util.dataforms: Support for retriving the field value data from forms

15 years agoutil.dataforms: Fixes for hidden field type
Matthew Wild [Sat, 4 Apr 2009 17:07:48 +0000 (18:07 +0100)]
util.dataforms: Fixes for hidden field type

15 years agoutil.dataforms: Fix some field types which didn't render properly
Matthew Wild [Sat, 4 Apr 2009 15:25:16 +0000 (16:25 +0100)]
util.dataforms: Fix some field types which didn't render properly

15 years agoutil.dataforms: Add support for <required/> fields
Matthew Wild [Sat, 4 Apr 2009 15:23:32 +0000 (16:23 +0100)]
util.dataforms: Add support for <required/> fields

15 years agoutil.dataforms: Fixed to actually work, mostly
Matthew Wild [Sat, 4 Apr 2009 14:32:32 +0000 (15:32 +0100)]
util.dataforms: Fixed to actually work, mostly

15 years agocore.sessionmanager: Hop out of <status> tag so that MUC doesn't insert into the...
Matthew Wild [Fri, 3 Apr 2009 00:29:59 +0000 (01:29 +0100)]
core.sessionmanager: Hop out of <status> tag so that MUC doesn't insert into the wrong level

15 years agoTagging 0.4.0
Matthew Wild [Tue, 31 Mar 2009 19:24:14 +0000 (20:24 +0100)]
Tagging 0.4.0

15 years agoTagging VERSION
Matthew Wild [Tue, 31 Mar 2009 19:15:33 +0000 (20:15 +0100)]
Tagging VERSION

15 years agomod_bosh: Fix to correctly timeout idle sessions
Matthew Wild [Tue, 31 Mar 2009 12:56:41 +0000 (13:56 +0100)]
mod_bosh: Fix to correctly timeout idle sessions

15 years agomod_debug: Some updates
Matthew Wild [Tue, 31 Mar 2009 03:34:41 +0000 (04:34 +0100)]
mod_debug: Some updates

15 years agocore.componentmanager: Fix global set, causing problems with multiple components...
Matthew Wild [Tue, 31 Mar 2009 02:48:51 +0000 (03:48 +0100)]
core.componentmanager: Fix global set, causing problems with multiple components. Fixes #82.

15 years agomod_debug: New debug module (a simplified mod_console, with raw Lua access to a runni...
Matthew Wild [Tue, 31 Mar 2009 02:00:40 +0000 (03:00 +0100)]
mod_debug: New debug module (a simplified mod_console, with raw Lua access to a running Prosody's internals)

15 years agoAdd lock_globals() and unlock_globals() functions (for when you really need to use...
Matthew Wild [Tue, 31 Mar 2009 01:18:13 +0000 (02:18 +0100)]
Add lock_globals() and unlock_globals() functions (for when you really need to use globals)

15 years agoLoad util.array and util.iterator at startup
Matthew Wild [Tue, 31 Mar 2009 01:17:11 +0000 (02:17 +0100)]
Load util.array and util.iterator at startup

15 years agoAutomated merge with ssh://hg@prosody.im/prosody-hg
Matthew Wild [Mon, 30 Mar 2009 19:04:31 +0000 (20:04 +0100)]
Automated merge with ssh://hg@prosody.im/prosody-hg

15 years agoMove SSL initialisation into the correct spot (thanks albert)
Matthew Wild [Mon, 30 Mar 2009 19:04:11 +0000 (20:04 +0100)]
Move SSL initialisation into the correct spot (thanks albert)

15 years agoAdded: componentmanager: Automatically add component.host.name to the disco items...
Waqas Hussain [Mon, 30 Mar 2009 01:07:21 +0000 (06:07 +0500)]
Added: componentmanager: Automatically add component.host.name to the disco items list of host.name

15 years agoFixed: Some nil access bugs
Waqas Hussain [Mon, 30 Mar 2009 00:26:10 +0000 (05:26 +0500)]
Fixed: Some nil access bugs

15 years agoAdded: MUC: Room invites
Waqas Hussain [Sun, 29 Mar 2009 23:39:12 +0000 (04:39 +0500)]
Added: MUC: Room invites

15 years agoAdded: util/events.lua: An event handling library
Waqas Hussain [Sun, 29 Mar 2009 22:58:59 +0000 (03:58 +0500)]
Added: util/events.lua: An event handling library

15 years agoFixed: mod_saslauth: "anonymous_login" currently makes SASL ANONYMOUS an exclusive...
Waqas Hussain [Sun, 29 Mar 2009 22:51:37 +0000 (03:51 +0500)]
Fixed: mod_saslauth: "anonymous_login" currently makes SASL ANONYMOUS an exclusive mechanism. Corrected advertised mechanisms and error replies.

15 years agoFixed: mod_saslauth: Changed anonymous host option from "sasl_anonymous" to "anonymou...
Waqas Hussain [Sun, 29 Mar 2009 22:42:47 +0000 (03:42 +0500)]
Fixed: mod_saslauth: Changed anonymous host option from "sasl_anonymous" to "anonymous_login"

15 years agoAdded: Prevent disk writes for anonmous hosts (option: core/anonymous_login = true)
Waqas Hussain [Sun, 29 Mar 2009 22:23:23 +0000 (03:23 +0500)]
Added: Prevent disk writes for anonmous hosts (option: core/anonymous_login = true)

15 years agoAdded: datamanager: Allow a callback to be installed which selectively prevents disk...
Waqas Hussain [Sun, 29 Mar 2009 22:22:34 +0000 (03:22 +0500)]
Added: datamanager: Allow a callback to be installed which selectively prevents disk writes

15 years agoFixed: s2smanager: Apply nameprep on hostnames passed in stream tag (part of issue...
Waqas Hussain [Sun, 29 Mar 2009 22:06:01 +0000 (03:06 +0500)]
Fixed: s2smanager: Apply nameprep on hostnames passed in stream tag (part of issue #57)

15 years agoFixed: sessionmanager: Apply nameprep on hostname passed in stream tag (part of issue...
Waqas Hussain [Sun, 29 Mar 2009 22:03:06 +0000 (03:03 +0500)]
Fixed: sessionmanager: Apply nameprep on hostname passed in stream tag (part of issue #57)