Commit Graph

658 Commits (54c77c0054c13aed866c19bec1179a886eaefea8)

Author SHA1 Message Date
Matthew Wild cd82ebe27d s2smanager: Don't tostring() the data before sending, sends2s already does this. 16 years ago
Matthew Wild f713f78045 s2smanager: Log and fail gracefully when unable to create socket for outgoing s2s connection (thanks foucault) 16 years ago
Matthew Wild 1ac7b7a3b7 s2smanager: Fix for the logic SRV record priority comparison (thanks darkrain) 16 years ago
Waqas Hussain beb6fa2f21 core.xmlhandlers: Fixed processing of empty namespaces (which caused an issue with jwchat). 16 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) 16 years ago
Waqas Hussain bb00a63d23 sessionmanager: Added function send_to_interested_resources(). 16 years ago
Waqas Hussain 10d98b6eef sessionmanager: Fixed and cleaned function send_to_available_resources(). The 'to' attribute for presence subscription stanzas is now preserved. 16 years ago
Waqas Hussain b50d8bac6f loggingmanager: Explicitly flush log messages if the __FLUSH_LOG environment variable is defined (workaround for MSVCRT buffering piped output). 16 years ago
Matthew Wild 4ffd18797a s2smanager: Fail outgoing s2s connection if hostname does not pass idna_to_ascii(), thanks Flo + waqas 16 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. 16 years ago
Waqas Hussain 316bc45e71 Changed separator between attribute names and prefixes from '|' to '\1' (optimization and cleanup). 16 years ago
Waqas Hussain 22394b0832 componentmanager: Improved logging for stanzas being bounced for unavailable components. 16 years ago
Matthew Wild 581c6ab9d1 modulemanager: api:get_option(): Handle correctly option values of boolean false, don't assume value unset 16 years ago
Waqas Hussain e9f1949a99 rostermanager: Fixed a global access. 16 years ago
Waqas Hussain c3555f641a rostermanager: Refactored roster loading to remove duplicate code. 16 years ago
Waqas Hussain eab91c4f75 rostermanager: Log a warning when a self-contact is detected. 16 years ago
Waqas Hussain fefe960849 rostermanager: Ensure meta-data entry is present on roster load. 16 years ago
Waqas Hussain a44b6261c9 rostermanager: Remove self-contacts from loaded rosters. 16 years ago
Matthew Wild 0664ac358a xmlhandlers: Reset state on error or stream close, fixes possible traceback 16 years ago
Waqas Hussain 43b59ec6d3 usermanager: Removed an unnecessary global access. 16 years ago
Waqas Hussain f3997f036d usermanager: Logged a clear warning when the 'admins' option is not a table. 16 years ago
Waqas Hussain 057cf59598 usermanager: Changed function is_admin to allow checking for host-specific admins. 16 years ago
Matthew Wild 48879b4b0d s2smanager: Use session-specific logger to log outgoing data on outgoing s2s connections 16 years ago
Waqas Hussain 9e0c207650 modulemanager: Module loading rewritten to gracefully deal with errors in module initialization. 16 years ago
Waqas Hussain 4b7031b383 modulemanager: Use componentmanager to create new components. 16 years ago
Waqas Hussain f0ea8af077 componentmanager: Added a FIXME comment. 16 years ago
Waqas Hussain 54a8f8c07a componentmanager: Unload mod_tls for components before removing them. 16 years ago
Waqas Hussain 7de06c45c4 componentmanager: Let the default component handler handle stanzas if a component handler isn't available. 16 years ago
Waqas Hussain a180af24ea modulemanager: Fixed: Stanza modules were being auto-loaded for components (regression in hg:1e674dae31ae). 16 years ago
Waqas Hussain fe8f9b9c37 modulemanager: Fixed traceback on loading modules on unknown hosts. 16 years ago
Waqas Hussain bf059aa455 modulemanager: Slightly rearranged code for more robust unloading of modules. 16 years ago
Waqas Hussain 2970ea37eb stanza_router: Added a compatibility workaround for missing 'id' attribute in <iq/> elements. 16 years ago
Matthew Wild d1e347d159 hostmanager: Create a server sslctx for incoming connections 16 years ago
Matthew Wild 5a0637e9e0 s2smanager: Add incoming_s2s to the prosody object 16 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 16 years ago
Matthew Wild 921d2fd716 hostmanager: Add return _M; 16 years ago
Matthew Wild b33e93f19b stanza_router: Localize hosts, full_sessions and bare_sessions, and take from the prosody object instead of _G 16 years ago
Matthew Wild e380b86c97 componentmanager: Handle missing prosody object (helps us pass some tests) 16 years ago
Matthew Wild 9167a96cfb s2smanager: Fix access of 'config' global without requiring configmanager 16 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) 16 years ago
Waqas Hussain 157842119d modulemanager: Changed api:get_host_items to include items from the global host in its result. 16 years ago
Waqas Hussain 193278754c rostermanager: Fixed a traceback on roster save. 16 years ago
Matthew Wild 74eb36a462 componentmanager: Auto-load mod_tls for components #hack 16 years ago
Matthew Wild c841ad1966 componentmanager: Remove FIXME 16 years ago
Matthew Wild 3581ac3072 componentmanager: Fix oops in pattern for matching subdomain 16 years ago
Matthew Wild eaa2143f8b componentmanager: Use ssl_ctx of 'parent' host (should fix TLS for components) 16 years ago
Matthew Wild 956a8c6ff5 s2smanager: Make s2s-stream-features a per-host event 16 years ago
Matthew Wild 9ff673912f modulemanager: Bump log level of unhandled non-default-namespace elements, and log their full XML 16 years ago
Matthew Wild 33f7956500 s2smanager: Don't send version=1.0 in reply to incoming stream tag if they didn't advertise 1.0 (makes happy some old ejabberd versions) 16 years ago
Paul Aurich 1a9c9dd936 sessionmanager: Mark client streams as opened sooner to avoid wrapping errors in unnecessary stream tags 16 years ago