- 06 Jan, 2016 12 commits
-
-
Guus der Kinderen authored
Previous commits have applied enough refactoring that it is now no longer needed to expose internal state. This saves on complexity and potential concurrency issues.
-
Guus der Kinderen authored
The 'enabled' field is unneeded - the presence of a namespace also indicates if SM is enabled. Reduces code, saves a little on memory.
-
Guus der Kinderen authored
By moving the processing of Stream Management elements into the StreamManager implementation, duplicated code can be removed.
-
Guus der Kinderen authored
To reduce the chance of lock contention, locks should only be put in effect when the code accesses data that is sensitive to concurrent access.
-
Guus der Kinderen authored
Prevent exposing access to a field that we're careful to modify under lock. Again, a defensive copy is a suitable alternative, but seems unneeded.
-
Guus der Kinderen authored
Do not expose the collection of packets that our implementation modifies only under a mutex (alternatively, we could return a defensive copy instead, but there does not seem to be a need to expose the collection in the first place).
-
Guus der Kinderen authored
Stream (debug) logging is very verbose, but does not provide any context. This commit adds the address of the peer to each log message. Additionally, some javadoc fixes were applied.
-
Guus der Kinderen authored
Don't add multiple delayed delivery extension to resent messages.
-
Dave Cridland authored
WebSocket plugin: Fix wrong namespace adding to empty elements
-
Christian Schudt authored
The issue is that messages, which get resent from offline storage already have an older timestamp. There should not be another delayed delivery extension, which "overwrites" the old one. Messages looked like that: <message><body>...</body><delay xmlns="urn:xmpp:delay" stamp="2016-01-06T13:48:45.312Z"></delay><delay xmlns="urn:xmpp:delay" stamp="2016-01-06T13:49:56.674Z"></delay></message> Instead the original timestamp should be preserved.
-
Christian Schudt authored
The old logic produced XML like: <presence xmlns="jabber:client" from="..." to="..."><show xmlns="">xa</show><status xmlns=""/></presence> This is basically the same fix as in 6965c13e. Relates to OF-938.
-
Dave Cridland authored
Remove verbose logging
-
- 05 Jan, 2016 17 commits
-
-
Tom Evans authored
OF-1009: Allow non-TLS dialback
-
Guus der Kinderen authored
When a TLS failure occurs during dialback, allow for a non-TLS based fallback.
-
Guus der Kinderen authored
This class logged to debug on any property change (including properties that do not relate to the class itself).
-
Dave Cridland authored
S2S logging
-
Dave Cridland authored
OF-1023: Fire contactChanged/Deleted events
-
Dave Cridland authored
OF-999: Allow configuration of BOSH worker thread pool
-
Dave Cridland authored
OF-998: Ant should resolve DTDs locally
-
Dave Cridland authored
OF-1025: Restore web-custom.xml functionality
-
Tom Evans authored
OF-1000 Prevent NPE and improve logging
-
Tom Evans authored
Fixed group population for colliding full names.
-
Tom Evans authored
OF-122: MUC subject change policy
-
Tom Evans authored
MUC Invitation rejection delegate call
-
Guus der Kinderen authored
For some reason, XPath-based selection of nodes no longer works. Traversing the Dom4j object resolves that problem.
-
Dave Cridland authored
Improve quality of random data generation.
-
Guus der Kinderen authored
Ant (or rather, the XMLTask in our build) attempts to lookup DTDs online. The build (of plugins) will fail if no internet connectivity is available. This commit references DTDs locally, allowing Ant to skip the online lookup.
-
Guus der Kinderen authored
When a log directory cannot be created, a warning should be logged, and null pointers should be prevented when the directory is being referenced.
-
Guus der Kinderen authored
The thread pool that performs processing of data received through the HTTP-based connections of BOSH (as provided by Jetty) should not have a hardcoded upper bound. Instead, the pool size should be configurable. For other connection types, this is managed by properties named as such: - xmpp.client.processing.threads (client sockets) - xmpp.multiplex.processing.threads (connection managers) - xmpp.component.processing.threads (components) BOSH does have a similar property: httpbind.client.processing.threads It's value however is not used to configure the amount of worker threads. It is used to configure the amount of (NIO) acceptors instead. In NIO, acceptor threads handle network IO, and hand off processing to the worker threads. There's little benefit in being able to configure the amount of acceptors, as Jetty will default to a platform-specific default (based on the number of CPUs that are available). There is greater benefit in being able to configure the amount of worker threads (as that's more likely to affect throughput).
-
- 04 Jan, 2016 11 commits
-
-
Tom Evans authored
Per PR feedback, default to a strict (conforming) policy when detecting MUC room subject change requests. Additional work could be done to add a corresponding configuration option to the MUC service admin console, but is not included in the scope of this PR.
-
Guus der Kinderen authored
StreamIDFactory is designed to generate stream IDs. It's silly to use something else when generating stream IDs.
-
Tom Evans authored
When a shared group is removed from a roster item, fire an update or delete event to keep the corresponding Roster cache in sync.
-
Guus der Kinderen authored
Stream ID generation should be based on a strong random number generator, should use a wider variety of characters than just hexadecimals, and could be a bit larger for reduced chance of duplicates.
-
Guus der Kinderen authored
-
Guus der Kinderen authored
-
Guus der Kinderen authored
Clarified the role in which Dialback is acting.
-
Guus der Kinderen authored
Reduced code complexity by removing code for which there is no execution path.
-
Guus der Kinderen authored
This commit reduced duplicated code that creates a socket to any of the DNS-SRV-based hosts for an XMPP domain by moving that code to a new utility class. Additionally, S2S logging was improved: references to 'remote hosts' where replaced by 'remote domains' to differentiate between servers and domains (that can consist of multiple servers).
-
Guus der Kinderen authored
xml:lang in stream header should conform to a language tag.
-
Christian Schudt authored
toString() was called on the Locale here, resulting e.g. in "de_DE". Instead it should be "de-DE".
-