prosody.git
11 years agoutil.pluginloader: Expose load_file
Matthew Wild [Wed, 1 Aug 2012 00:27:31 +0000 (01:27 +0100)]
util.pluginloader: Expose load_file

11 years agomod_bosh: Remove redundant code (send stream features in only one place) (thanks...
Matthew Wild [Wed, 1 Aug 2012 00:03:53 +0000 (01:03 +0100)]
mod_bosh: Remove redundant code (send stream features in only one place) (thanks Zash)

11 years agomod_bosh: Remove troublesome return... continue processing of the streamopen after...
Matthew Wild [Tue, 31 Jul 2012 23:39:54 +0000 (00:39 +0100)]
mod_bosh: Remove troublesome return... continue processing of the streamopen after session creation (because since 16c7b510694b we no longer send an early response)

11 years agoMerge Waqas<>Zash
Matthew Wild [Tue, 31 Jul 2012 22:07:02 +0000 (23:07 +0100)]
Merge Waqas<>Zash

11 years agoutil.pposix: Put the warning back, mention how we might still use posix_fallocate()
Kim Alvefur [Tue, 31 Jul 2012 21:43:34 +0000 (23:43 +0200)]
util.pposix: Put the warning back, mention how we might still use posix_fallocate()

11 years agoutil.pposix: Try posix_fallocate() if fallocate() is unsupported by the file system
Kim Alvefur [Tue, 31 Jul 2012 21:38:02 +0000 (23:38 +0200)]
util.pposix: Try posix_fallocate() if fallocate() is unsupported by the file system

11 years agoutil.datamanager: Try to open in read+write mode, then retry with write mode if that...
Kim Alvefur [Tue, 31 Jul 2012 21:34:11 +0000 (23:34 +0200)]
util.datamanager: Try to open in read+write mode, then retry with write mode if that fails (usually because it doesn't exist)

11 years agoutil.datamanager: Don't use os.rename on non-POSIX. It doesn't overwrite exisitng...
Waqas Hussain [Tue, 31 Jul 2012 20:36:34 +0000 (01:36 +0500)]
util.datamanager: Don't use os.rename on non-POSIX. It doesn't overwrite exisitng files on Windows.

11 years agoMUC: Give host and server admins "owner" affiliation in all rooms.
Waqas Hussain [Tue, 31 Jul 2012 20:36:30 +0000 (01:36 +0500)]
MUC: Give host and server admins "owner" affiliation in all rooms.

11 years agoMUC: Expose room metatable in the MUC lib.
Waqas Hussain [Tue, 31 Jul 2012 20:36:25 +0000 (01:36 +0500)]
MUC: Expose room metatable in the MUC lib.

11 years agoMUC: Send unavailable presence when the component or server is shutting down.
Waqas Hussain [Tue, 31 Jul 2012 20:36:22 +0000 (01:36 +0500)]
MUC: Send unavailable presence when the component or server is shutting down.

11 years agoMUC: Fix private IQ and message routing.
Waqas Hussain [Tue, 31 Jul 2012 20:36:19 +0000 (01:36 +0500)]
MUC: Fix private IQ and message routing.

- All private IQ results are now routed to the resource that send the original request
- Private messages are now routed to all of the user's sessions
- Much cleaner code

11 years agomod_presence, rostermanager: Bring outbound subscription cancellation in line with...
Waqas Hussain [Tue, 31 Jul 2012 20:36:16 +0000 (01:36 +0500)]
mod_presence, rostermanager: Bring outbound subscription cancellation in line with RFC6121.

11 years agomod_component: For disconnected external components, if a name is specified in config...
Waqas Hussain [Tue, 31 Jul 2012 20:36:13 +0000 (01:36 +0500)]
mod_component: For disconnected external components, if a name is specified in config, return it in disco#info replies.

11 years agoMUC: Return <item-not-found/> on message and iq to non-existent rooms (thanks Maranda).
Waqas Hussain [Tue, 31 Jul 2012 20:36:11 +0000 (01:36 +0500)]
MUC: Return <item-not-found/> on message and iq to non-existent rooms (thanks Maranda).

11 years agoutil.datamanager: Add missing mode flag to seek call
Kim Alvefur [Tue, 31 Jul 2012 06:23:55 +0000 (08:23 +0200)]
util.datamanager: Add missing mode flag to seek call

11 years agomod_storage_sql: Return connection from connect even if already connected (thanks...
Matthew Wild [Mon, 30 Jul 2012 17:50:46 +0000 (18:50 +0100)]
mod_storage_sql: Return connection from connect even if already connected (thanks IRON)

11 years agomod_storage_sql: Complete transactions in list_stores and purge
Kim Alvefur [Mon, 30 Jul 2012 04:01:41 +0000 (06:01 +0200)]
mod_storage_sql: Complete transactions in list_stores and purge

11 years agomod_storage_sql: Keep connections in a shared cache table
Kim Alvefur [Sun, 29 Jul 2012 23:54:07 +0000 (01:54 +0200)]
mod_storage_sql: Keep connections in a shared cache table

11 years agomoduleapi: If path name ends with '-cache' create table as weak (keys and values)
Matthew Wild [Sun, 29 Jul 2012 23:40:02 +0000 (00:40 +0100)]
moduleapi: If path name ends with '-cache' create table as weak (keys and values)

11 years agoutil.pposix: Warn about posix_fallocate
Kim Alvefur [Sun, 29 Jul 2012 20:21:58 +0000 (22:21 +0200)]
util.pposix: Warn about posix_fallocate

11 years agoutil.datamanager: Remove a few unused imports
Kim Alvefur [Sun, 29 Jul 2012 01:30:59 +0000 (03:30 +0200)]
util.datamanager: Remove a few unused imports

11 years agoMerge with Zash
Matthew Wild [Sun, 29 Jul 2012 01:28:25 +0000 (02:28 +0100)]
Merge with Zash

11 years agoportmanager: Remove unused import of 'pairs'
Matthew Wild [Sun, 29 Jul 2012 01:27:07 +0000 (02:27 +0100)]
portmanager: Remove unused import of 'pairs'

11 years agoutil.datamanager: Write to a temporary file and atomically move it into place
Kim Alvefur [Sun, 29 Jul 2012 01:26:03 +0000 (03:26 +0200)]
util.datamanager: Write to a temporary file and atomically move it into place

11 years agomod_bosh: Correctly handle data included in the session initiation request, and cork...
Matthew Wild [Sun, 29 Jul 2012 00:56:45 +0000 (01:56 +0100)]
mod_bosh: Correctly handle data included in the session initiation request, and cork session while a request is being processed, preventing replying to requests when there may be more data to come, reducing round-trips.

11 years agoconfigure: Add _GNU_SOURCE flag to linux and debian presets to enable Linux fallocate()
Kim Alvefur [Sat, 28 Jul 2012 23:37:15 +0000 (01:37 +0200)]
configure: Add _GNU_SOURCE flag to linux and debian presets to enable Linux fallocate()

11 years agoutil.datamanager: Use pposix.fallocate() to make sure appends succeed. Also add a...
Kim Alvefur [Sat, 28 Jul 2012 20:37:24 +0000 (22:37 +0200)]
util.datamanager: Use pposix.fallocate() to make sure appends succeed. Also add a fallback fallocate()

11 years agoutil.pposix: Add fallocate method, backed by either posix_fallocate() or Linux falloc...
Kim Alvefur [Sat, 28 Jul 2012 20:21:10 +0000 (22:21 +0200)]
util.pposix: Add fallocate method, backed by either posix_fallocate() or Linux fallocate()

11 years agoMerge with Zash
Matthew Wild [Sat, 28 Jul 2012 19:59:03 +0000 (20:59 +0100)]
Merge with Zash

11 years agousermanager: Add method for deleting a user
Kim Alvefur [Sat, 28 Jul 2012 19:55:05 +0000 (21:55 +0200)]
usermanager: Add method for deleting a user

11 years agostoragemanager: Add method for removing all data belonging to a user
Kim Alvefur [Sat, 28 Jul 2012 19:38:22 +0000 (21:38 +0200)]
storagemanager: Add method for removing all data belonging to a user

11 years agomod_storage_sql: Add method for removing all data belonging to a user
Kim Alvefur [Sat, 28 Jul 2012 19:36:42 +0000 (21:36 +0200)]
mod_storage_sql: Add method for removing all data belonging to a user

11 years agomod_storage_internal: Add method for removing all data belonging to a user
Kim Alvefur [Sat, 28 Jul 2012 19:36:36 +0000 (21:36 +0200)]
mod_storage_internal: Add method for removing all data belonging to a user

11 years agoutil.datamanager: Add function for removing all data belonging to a user
Kim Alvefur [Sat, 28 Jul 2012 19:31:54 +0000 (21:31 +0200)]
util.datamanager: Add function for removing all data belonging to a user

11 years agostoragemanager: Add method for listing stores
Kim Alvefur [Sat, 28 Jul 2012 19:30:54 +0000 (21:30 +0200)]
storagemanager: Add method for listing stores

11 years agostoragemanager: Split out driver choosing from the open() method
Kim Alvefur [Sat, 28 Jul 2012 19:30:24 +0000 (21:30 +0200)]
storagemanager: Split out driver choosing from the open() method

11 years agomod_storage_sql: Add method for listing stores
Kim Alvefur [Sat, 28 Jul 2012 19:27:45 +0000 (21:27 +0200)]
mod_storage_sql: Add method for listing stores

11 years agomod_storage_sql: Split out query handling logic from getsql() into a separate function
Kim Alvefur [Sat, 28 Jul 2012 19:26:33 +0000 (21:26 +0200)]
mod_storage_sql: Split out query handling logic from getsql() into a separate function

11 years agomod_storage_internal: Add method for listing stores
Kim Alvefur [Sat, 28 Jul 2012 19:24:59 +0000 (21:24 +0200)]
mod_storage_internal: Add method for listing stores

11 years agoutil.datamanager: Add function for listing stores
Kim Alvefur [Sat, 28 Jul 2012 19:22:42 +0000 (21:22 +0200)]
util.datamanager: Add function for listing stores

11 years agomod_bosh: Backout revision bc0a68cae236 (experimental bosh_auto_cork option) as I...
Matthew Wild [Sat, 28 Jul 2012 17:50:04 +0000 (18:50 +0100)]
mod_bosh: Backout revision bc0a68cae236 (experimental bosh_auto_cork option) as I don't believe it works

11 years agomod_admin_telnet: Import prosody.incoming_s2s
Matthew Wild [Sat, 28 Jul 2012 00:28:14 +0000 (01:28 +0100)]
mod_admin_telnet: Import prosody.incoming_s2s

11 years agomod_admin_telnet: Fix usage of incorrect variable
Matthew Wild [Sat, 28 Jul 2012 00:25:01 +0000 (01:25 +0100)]
mod_admin_telnet: Fix usage of incorrect variable

11 years agomod_admin_telnet: Remove unused variable
Matthew Wild [Sat, 28 Jul 2012 00:24:48 +0000 (01:24 +0100)]
mod_admin_telnet: Remove unused variable

11 years agomod_admin_telnet: Import portmanager and s2smanager, as they are both used
Matthew Wild [Sat, 28 Jul 2012 00:24:34 +0000 (01:24 +0100)]
mod_admin_telnet: Import portmanager and s2smanager, as they are both used

11 years agomod_admin_telnet: Fix broken indentation
Matthew Wild [Sat, 28 Jul 2012 00:19:09 +0000 (01:19 +0100)]
mod_admin_telnet: Fix broken indentation

11 years agomod_admin_telnet: Use module:get_option() instead of configmanager directly
Matthew Wild [Sat, 28 Jul 2012 00:17:23 +0000 (01:17 +0100)]
mod_admin_telnet: Use module:get_option() instead of configmanager directly

11 years agoMerge with Florob
Matthew Wild [Sat, 28 Jul 2012 00:14:31 +0000 (01:14 +0100)]
Merge with Florob

11 years agomod_dialback: Ignore <db:verify/> with a 'type' attribute on incoming connections...
Matthew Wild [Fri, 27 Jul 2012 19:29:32 +0000 (20:29 +0100)]
mod_dialback: Ignore <db:verify/> with a 'type' attribute on incoming connections, instead of interpreting them as a request to verify a key

11 years agonet.server_event: Replace usage of string.len() with # operator
Matthew Wild [Thu, 26 Jul 2012 15:46:18 +0000 (16:46 +0100)]
net.server_event: Replace usage of string.len() with # operator

11 years agomod_vcard: Remove vcard_compatibility COMPAT (moved to mod_compat_vcard in prosody...
Matthew Wild [Thu, 26 Jul 2012 14:16:52 +0000 (15:16 +0100)]
mod_vcard: Remove vcard_compatibility COMPAT (moved to mod_compat_vcard in prosody-modules), and add warning for those using the option

11 years agomod_muc: Remove unused variable and pull hosts into a local
Kim Alvefur [Thu, 26 Jul 2012 02:45:22 +0000 (04:45 +0200)]
mod_muc: Remove unused variable and pull hosts into a local

11 years agomod_muc: Use module:send() instead of core_*_stanza()
Kim Alvefur [Thu, 26 Jul 2012 02:41:56 +0000 (04:41 +0200)]
mod_muc: Use module:send() instead of core_*_stanza()

11 years agomod_announce, mod_motd, mod_pubsub, mod_register, mod_watchregistrations, mod_welcome...
Kim Alvefur [Thu, 26 Jul 2012 02:35:13 +0000 (04:35 +0200)]
mod_announce, mod_motd, mod_pubsub, mod_register, mod_watchregistrations, mod_welcome: Use module:send() instead of core_*_stanza()

11 years agomod_admin_adhoc, mod_admin_telnet, mod_bosh, mod_c2s, mod_component, mod_pep, mod_pre...
Kim Alvefur [Thu, 26 Jul 2012 02:33:17 +0000 (04:33 +0200)]
mod_admin_adhoc, mod_admin_telnet, mod_bosh, mod_c2s, mod_component, mod_pep, mod_presence, mod_roster, mod_s2s: Import core_post_stanza from the global prosody table.

11 years agostanza_router: Warn if the global core_*_stanza() functions are called
Kim Alvefur [Thu, 26 Jul 2012 02:30:30 +0000 (04:30 +0200)]
stanza_router: Warn if the global core_*_stanza() functions are called

11 years agomod_admin_telnet: Add xmpp:ping(from, to), useful for initiating s2s connections
Kim Alvefur [Thu, 26 Jul 2012 00:27:24 +0000 (02:27 +0200)]
mod_admin_telnet: Add xmpp:ping(from, to), useful for initiating s2s connections

11 years agonet.server_event: Don't emit empty packets, check for errors first. (fixes #287)
Kim Alvefur [Wed, 25 Jul 2012 18:33:20 +0000 (20:33 +0200)]
net.server_event: Don't emit empty packets, check for errors first. (fixes #287)

11 years agoportmanager: Show a friendly error message when initializing SSL fails (thanks MattJ...
Kim Alvefur [Wed, 25 Jul 2012 18:31:14 +0000 (20:31 +0200)]
portmanager: Show a friendly error message when initializing SSL fails (thanks MattJ for the entire patch that I fixed one line in)

11 years agoMerge with Zash
Matthew Wild [Wed, 25 Jul 2012 17:51:49 +0000 (18:51 +0100)]
Merge with Zash

11 years agomod_pep: Allow configurable service discovery identity (Fix)
IRON [Wed, 25 Jul 2012 16:04:42 +0000 (19:04 +0300)]
mod_pep: Allow configurable service discovery identity (Fix)

11 years agoMerge with IRON
Matthew Wild [Wed, 25 Jul 2012 15:57:22 +0000 (16:57 +0100)]
Merge with IRON

11 years agomod_pep: Allow configurable service discovery identity
IRON [Wed, 25 Jul 2012 15:49:13 +0000 (18:49 +0300)]
mod_pep: Allow configurable service discovery identity

11 years agomod_admin_telnet: Remove useless call to string.lower()
Kim Alvefur [Tue, 24 Jul 2012 20:03:51 +0000 (22:03 +0200)]
mod_admin_telnet: Remove useless call to string.lower()

11 years agomod_admin_telnet: Add missing import of usermanager
Kim Alvefur [Tue, 24 Jul 2012 19:37:16 +0000 (21:37 +0200)]
mod_admin_telnet: Add missing import of usermanager

11 years agomod_admin_telnet: Remove unused or duplicated locals
Kim Alvefur [Tue, 24 Jul 2012 19:36:47 +0000 (21:36 +0200)]
mod_admin_telnet: Remove unused or duplicated locals

11 years agologgingmanager: Remove unused variables
Matthew Wild [Tue, 24 Jul 2012 14:50:11 +0000 (15:50 +0100)]
loggingmanager: Remove unused variables

11 years agomod_auth_cyrus, util.sasl_cyrus: Add new option 'cyrus_server_fqdn' to override the...
Matthew Wild [Tue, 24 Jul 2012 09:56:47 +0000 (10:56 +0100)]
mod_auth_cyrus, util.sasl_cyrus: Add new option 'cyrus_server_fqdn' to override the hostname passed to Cyrus (and used in e.g. GSSAPI/Kerberos) - fixes #295

11 years agomod_muc: Fix a couple of cases of 'forbidden' stanza error being sent with type ...
Matthew Wild [Tue, 24 Jul 2012 09:44:37 +0000 (10:44 +0100)]
mod_muc: Fix a couple of cases of 'forbidden' stanza error being sent with type 'cancel' - fixes #303

11 years agomod_bosh: Use new format for headers when checking for proxies to get the originating IP
Kim Alvefur [Mon, 23 Jul 2012 21:05:32 +0000 (23:05 +0200)]
mod_bosh: Use new format for headers when checking for proxies to get the originating IP

11 years agomod_s2s: Bump s2s_timeout to 90, to allow for the TCP timeout (in most cases) - this...
Matthew Wild [Mon, 23 Jul 2012 17:57:28 +0000 (18:57 +0100)]
mod_s2s: Bump s2s_timeout to 90, to allow for the TCP timeout (in most cases) - this allows us to continue to try other targets

11 years agomod_c2s, mod_s2s: Lower 'Disconnecting X' log messages from 'info' to 'debug'
Matthew Wild [Mon, 23 Jul 2012 17:28:14 +0000 (18:28 +0100)]
mod_c2s, mod_s2s: Lower 'Disconnecting X' log messages from 'info' to 'debug'

11 years agosessionmanager: Lower 'destroying session' message to 'debug' level (from 'info')
Matthew Wild [Mon, 23 Jul 2012 17:26:30 +0000 (18:26 +0100)]
sessionmanager: Lower 'destroying session' message to 'debug' level (from 'info')

11 years agos2smanager: Remove logging of (unknown) in a case where from_host and to_host should...
Matthew Wild [Mon, 23 Jul 2012 16:35:18 +0000 (17:35 +0100)]
s2smanager: Remove logging of (unknown) in a case where from_host and to_host should always be set

11 years agoHopefully inert commit to clean up logging across a number of modules, removing all...
Matthew Wild [Mon, 23 Jul 2012 16:32:33 +0000 (17:32 +0100)]
Hopefully inert commit to clean up logging across a number of modules, removing all cases of concatenation when building log messages

11 years agocertmanager: Remove unused import of setmetatable
Matthew Wild [Mon, 23 Jul 2012 15:42:26 +0000 (16:42 +0100)]
certmanager: Remove unused import of setmetatable

11 years agocertmanager: Fix for traceback WITH LuaSec... (!) (thanks IRON)
Matthew Wild [Mon, 23 Jul 2012 15:39:49 +0000 (16:39 +0100)]
certmanager: Fix for traceback WITH LuaSec... (!) (thanks IRON)

11 years agocertmanager: Fix traceback for missing LuaSec (thanks Link Mauve)
Matthew Wild [Mon, 23 Jul 2012 13:17:42 +0000 (14:17 +0100)]
certmanager: Fix traceback for missing LuaSec (thanks Link Mauve)

11 years agomod_admin_telnet: Always handle commands terminated by line feeds - ensures consisten...
Matthew Wild [Mon, 23 Jul 2012 13:03:00 +0000 (14:03 +0100)]
mod_admin_telnet: Always handle commands terminated by line feeds - ensures consistency even when packets are joined or split on the network

11 years agomod_s2s: Adjust session:close() in line with mod_c2s's - fixes waiting for </stream...
Matthew Wild [Mon, 23 Jul 2012 12:31:26 +0000 (13:31 +0100)]
mod_s2s: Adjust session:close() in line with mod_c2s's - fixes waiting for </stream:stream> if it has already been sent by the peer

11 years agomod_s2s/s2sout.lib: Use %s to insert strings into log messages instead of concatenation
Matthew Wild [Mon, 23 Jul 2012 12:29:33 +0000 (13:29 +0100)]
mod_s2s/s2sout.lib: Use %s to insert strings into log messages instead of concatenation

11 years agomod_c2s: Change 'reason' parameter of session:close() to take nil to mean 'graceful...
Matthew Wild [Mon, 23 Jul 2012 11:56:47 +0000 (12:56 +0100)]
mod_c2s: Change 'reason' parameter of session:close() to take nil to mean 'graceful close initiated by us' and false for 'graceful close initiated by client'

11 years agomod_disco: Allow configurable name in disco identity (defaults to 'Prosody')
Matthew Wild [Mon, 23 Jul 2012 11:25:33 +0000 (12:25 +0100)]
mod_disco: Allow configurable name in disco identity (defaults to 'Prosody')

11 years agonet.server_event: Remove unused variables and imports
Matthew Wild [Sun, 22 Jul 2012 22:45:53 +0000 (23:45 +0100)]
net.server_event: Remove unused variables and imports

11 years agonet.server_select: Remove unused variables and imports
Matthew Wild [Sun, 22 Jul 2012 22:41:33 +0000 (23:41 +0100)]
net.server_select: Remove unused variables and imports

11 years agonet.server_select: Remove extraneous variable
Matthew Wild [Sun, 22 Jul 2012 22:39:27 +0000 (23:39 +0100)]
net.server_select: Remove extraneous variable

11 years agosessionmanager: Clean up some unused variables and imports
Matthew Wild [Sun, 22 Jul 2012 22:38:21 +0000 (23:38 +0100)]
sessionmanager: Clean up some unused variables and imports

11 years agonet.server_select: Never call ondisconnect() directly, go via handler:close() or...
Matthew Wild [Sun, 22 Jul 2012 21:12:17 +0000 (22:12 +0100)]
net.server_select: Never call ondisconnect() directly, go via handler:close() or handler:force_close() - fixes cases where ondisconnect() could be called multiple times for the same connection, leading to issues with s2sout retry logic.

11 years agoMerge with Maranda
Matthew Wild [Sun, 22 Jul 2012 17:52:20 +0000 (18:52 +0100)]
Merge with Maranda

11 years agoMerge with Zash
Matthew Wild [Sun, 22 Jul 2012 17:47:40 +0000 (18:47 +0100)]
Merge with Zash

11 years agoMerge Zash with Zash for Zash
Matthew Wild [Sun, 22 Jul 2012 17:46:49 +0000 (18:46 +0100)]
Merge Zash with Zash for Zash

11 years agomod_admin_telnet: Replace anonymous function with loop (saves a closure)
Matthew Wild [Sun, 22 Jul 2012 17:00:59 +0000 (18:00 +0100)]
mod_admin_telnet: Replace anonymous function with loop (saves a closure)

11 years agoMerge 0.9->trunk
Matthew Wild [Sun, 22 Jul 2012 16:08:09 +0000 (17:08 +0100)]
Merge 0.9->trunk

11 years agomod_s2s: Don't call ondisconnect manually, don't call conn:close() 3 times (!) and...
Matthew Wild [Sun, 22 Jul 2012 16:07:21 +0000 (17:07 +0100)]
mod_s2s: Don't call ondisconnect manually, don't call conn:close() 3 times (!) and merge its logic and streamdisconnected into session_close - including now waiting for a reply </stream:stream> if there is the chance of further stanzas requiring delivery arriving. session.sends2s() on a half-closed stream returns false.

11 years agomod_s2s: Don't treat a stanza as delivered if session.sends2s() returns false
Matthew Wild [Sun, 22 Jul 2012 16:04:02 +0000 (17:04 +0100)]
mod_s2s: Don't treat a stanza as delivered if session.sends2s() returns false

11 years agomod_presence: Handle nil disconnection error
Matthew Wild [Sun, 22 Jul 2012 16:02:18 +0000 (17:02 +0100)]
mod_presence: Handle nil disconnection error

11 years agomod_iq: Don't treat an iq as handled if session.send() returns false
Matthew Wild [Sun, 22 Jul 2012 16:01:52 +0000 (17:01 +0100)]
mod_iq: Don't treat an iq as handled if session.send() returns false

11 years agomod_message: Don't treat a message as delivered ok if session.send() returns false
Matthew Wild [Sun, 22 Jul 2012 15:59:55 +0000 (16:59 +0100)]
mod_message: Don't treat a message as delivered ok if session.send() returns false

11 years agomod_c2s: Don't call ondisconnect manually on close, it is now called by net.server...
Matthew Wild [Sun, 22 Jul 2012 15:59:12 +0000 (16:59 +0100)]
mod_c2s: Don't call ondisconnect manually on close, it is now called by net.server. Replace with inline code for destroying the session, and also waiting for a reply </stream:stream> if there is a chance of further data sent by the client. session.send() on a half-closed stream returns false (and does not deliver the data).