Commit Graph

663 Commits (5226f7e43a8b32b1d40ebea350c6267fef6f94de)

Author SHA1 Message Date
Matthew Wild 5226f7e43a s2smanager: Give reasons to destroy_session in more cases, including when DNS lookup fails 17 years ago
Matthew Wild e394e2f222 s2smanager: Have both destroy_session and bounce_sendq accept a reason string to include in bounced stanzas 17 years ago
Matthew Wild a50ea05d63 s2smanager: Send reply stream header only after checking we serve this host (sorry darkrain... :) ) 17 years ago
Matthew Wild b041ac5805 componentmanager: Set ssl_ctx[_in] for components correctly, and use global SSL context if available 17 years ago
Paul Aurich a5dcc1d8c6 Disable SSLv2 by default, it's known to be insecure. 17 years ago
Matthew Wild cd82ebe27d s2smanager: Don't tostring() the data before sending, sends2s already does this. 17 years ago
Matthew Wild f713f78045 s2smanager: Log and fail gracefully when unable to create socket for outgoing s2s connection (thanks foucault) 17 years ago
Matthew Wild 1ac7b7a3b7 s2smanager: Fix for the logic SRV record priority comparison (thanks darkrain) 17 years ago
Waqas Hussain beb6fa2f21 core.xmlhandlers: Fixed processing of empty namespaces (which caused an issue with jwchat). 17 years ago
Matthew Wild c4742ed781 s2smanager: Log warning when trying to send a stanza from a host we don't serve, instead of a traceback (thanks stpeter) 17 years ago
Waqas Hussain bb00a63d23 sessionmanager: Added function send_to_interested_resources(). 17 years ago
Waqas Hussain 10d98b6eef sessionmanager: Fixed and cleaned function send_to_available_resources(). The 'to' attribute for presence subscription stanzas is now preserved. 17 years ago
Waqas Hussain b50d8bac6f loggingmanager: Explicitly flush log messages if the __FLUSH_LOG environment variable is defined (workaround for MSVCRT buffering piped output). 17 years ago
Matthew Wild 4ffd18797a s2smanager: Fail outgoing s2s connection if hostname does not pass idna_to_ascii(), thanks Flo + waqas 17 years ago
Matthew Wild 9d6d5c3913 s2smanager: Queue db:verify unless we already sent a db:result (if we had then it can could a dialback deadlock). Also remove some redundant code which could cause a db:result to be sent while still negotiating features (e.g. TLS) and break things. Collectively these fix a 'random' s2s failure (usually with ejabberd for some reason) - resulting in an 'unbound prefix' XML error, or 'ssl handshake failure'. Was this commit message long enough? I think so. 17 years ago
Waqas Hussain 316bc45e71 Changed separator between attribute names and prefixes from '|' to '\1' (optimization and cleanup). 17 years ago
Waqas Hussain 22394b0832 componentmanager: Improved logging for stanzas being bounced for unavailable components. 17 years ago
Matthew Wild 581c6ab9d1 modulemanager: api:get_option(): Handle correctly option values of boolean false, don't assume value unset 17 years ago
Waqas Hussain e9f1949a99 rostermanager: Fixed a global access. 17 years ago
Waqas Hussain c3555f641a rostermanager: Refactored roster loading to remove duplicate code. 17 years ago
Waqas Hussain eab91c4f75 rostermanager: Log a warning when a self-contact is detected. 17 years ago
Waqas Hussain fefe960849 rostermanager: Ensure meta-data entry is present on roster load. 17 years ago
Waqas Hussain a44b6261c9 rostermanager: Remove self-contacts from loaded rosters. 17 years ago
Matthew Wild 0664ac358a xmlhandlers: Reset state on error or stream close, fixes possible traceback 17 years ago
Waqas Hussain 43b59ec6d3 usermanager: Removed an unnecessary global access. 17 years ago
Waqas Hussain f3997f036d usermanager: Logged a clear warning when the 'admins' option is not a table. 17 years ago
Waqas Hussain 057cf59598 usermanager: Changed function is_admin to allow checking for host-specific admins. 17 years ago
Matthew Wild 48879b4b0d s2smanager: Use session-specific logger to log outgoing data on outgoing s2s connections 17 years ago
Waqas Hussain 9e0c207650 modulemanager: Module loading rewritten to gracefully deal with errors in module initialization. 17 years ago
Waqas Hussain 4b7031b383 modulemanager: Use componentmanager to create new components. 17 years ago
Waqas Hussain f0ea8af077 componentmanager: Added a FIXME comment. 17 years ago
Waqas Hussain 54a8f8c07a componentmanager: Unload mod_tls for components before removing them. 17 years ago
Waqas Hussain 7de06c45c4 componentmanager: Let the default component handler handle stanzas if a component handler isn't available. 17 years ago
Waqas Hussain a180af24ea modulemanager: Fixed: Stanza modules were being auto-loaded for components (regression in hg:1e674dae31ae). 17 years ago
Waqas Hussain fe8f9b9c37 modulemanager: Fixed traceback on loading modules on unknown hosts. 17 years ago
Waqas Hussain bf059aa455 modulemanager: Slightly rearranged code for more robust unloading of modules. 17 years ago
Waqas Hussain 2970ea37eb stanza_router: Added a compatibility workaround for missing 'id' attribute in <iq/> elements. 17 years ago
Matthew Wild d1e347d159 hostmanager: Create a server sslctx for incoming connections 17 years ago
Matthew Wild 5a0637e9e0 s2smanager: Add incoming_s2s to the prosody object 17 years ago
Matthew Wild 5e175c043e hostmanager: deactivate() now accepts a reason, closes s2s connections as well as disconnecting users, and unloads modules for the host 17 years ago
Matthew Wild 921d2fd716 hostmanager: Add return _M; 17 years ago
Matthew Wild b33e93f19b stanza_router: Localize hosts, full_sessions and bare_sessions, and take from the prosody object instead of _G 17 years ago
Matthew Wild e380b86c97 componentmanager: Handle missing prosody object (helps us pass some tests) 17 years ago
Matthew Wild 9167a96cfb s2smanager: Fix access of 'config' global without requiring configmanager 17 years ago
Matthew Wild 6c0b6f76fb modulemanager: Re-organise module loading to still work when no global modules_enabled is defined in the config (thanks hoelzro for accidentally discovering this one) 17 years ago
Waqas Hussain 157842119d modulemanager: Changed api:get_host_items to include items from the global host in its result. 17 years ago
Waqas Hussain 193278754c rostermanager: Fixed a traceback on roster save. 17 years ago
Matthew Wild 74eb36a462 componentmanager: Auto-load mod_tls for components #hack 17 years ago
Matthew Wild c841ad1966 componentmanager: Remove FIXME 17 years ago
Matthew Wild 3581ac3072 componentmanager: Fix oops in pattern for matching subdomain 17 years ago