- 09 Nov, 2015 1 commit
-
-
Christian Schudt authored
There were still ~1500 missing annotations! This time fixed with IntelliJ ;-)
-
- 29 Oct, 2015 1 commit
-
-
Christian Schudt authored
- Use String.getBytes(Charset) instead of String.getBytes(String) - Use new String(byte[], Charset) instead of new String(byte[], String) -> Get rid of UnsupportedEncodingException. -> Less try-catch blocks.
-
- 13 Oct, 2015 1 commit
-
-
Guus der Kinderen authored
-
- 28 Jul, 2015 1 commit
-
-
Tom Evans authored
Original issue (OF-857) has been addressed by providing an alternate packet deliverer (to offline storage). This additional logic was an ill-advised "belt-and-suspenders" attempt to prevent the recursion which was occurring before the backup deliverer was implemented.
-
- 08 Jul, 2015 1 commit
-
-
Dave Cridland authored
There is a deadlock while reading the state variable if close() is running. This switches the state to be volatile instead - it's only written to inside the lengthy close() lock, so this should be reasonable.
-
- 10 Jun, 2015 2 commits
-
-
Dave Cridland authored
Addressing DIRMINA-1012
-
Dave Cridland authored
Where ioSession.getRemoteAddress() returns null, this can cause an NPE.
-
- 29 May, 2015 3 commits
-
-
Guus der Kinderen authored
By closing a session when the new MINA inputClosed() handler is triggered, we run the risk of sending data to the peer. As that peer is known to be dead, this is pointless (and potentially dangerous - deadlocks have been observed that are likely related to this scenario). To prevent sending data during session closure, the close() method has been overloaded with an argument that indicates if the peer is known to be dead. When set, its implementation will not attempt to send data.
-
Guus der Kinderen authored
The close listeners should not be called from within a synchronized block.
-
Guus der Kinderen authored
When a connection is closed, several events can be involved (and can be triggered). Some of these events will attempt to close the connection (if it hadn't been already). This, at best, least to multiple invocations of close-listeners. At worst, a loop of close-calls is created. This commit replaces the two-way boolean that guards closure (isClosed) with a three-way guard. Now, a distinction is made between between a connection that is closed, and one that is closing. Additionally, some null pointer guards have been added, as I've seen those pop up in my local logs during development.
-
- 28 May, 2015 1 commit
-
-
Guus der Kinderen authored
MINA 2.0.8 introduces support for half-duplex close of TCP channels (see DIRMINA-785). As part of this change, IoHandlers got a new method. The default behavior of the IoHandlerAdapter closes the MINA session when this handler is triggered. However, without an Openfire-specific extension (in ConnectionHandler), this fails to close Openfire-maintained resources. As a result, CPUs could start to spin in NIO code, resulting in 100% CPU cycles. To fix this issue, ConnectionHandler now overrides the default functionality and triggers a normal closure of the session (both in Openfire as well as MINA context). Additionally, to prevent the CPU spin, MINA sessions need to be closed synchronously (as opposed to the async closure Openfire had up until now). I cannot quite explain the need for this change, other than a suspision of race conditions in the async setup.
-
- 26 May, 2015 2 commits
-
-
Guus der Kinderen authored
-
Guus der Kinderen authored
-
- 01 May, 2015 1 commit
-
-
Dave Cridland authored
-
- 14 Feb, 2015 1 commit
-
-
test@test.com authored
OF-881: NIOConnection Thread Deadlock when two clients in each others roster simultaneously disconnect
-
- 13 Jan, 2015 2 commits
-
-
Tom Evans authored
When a connection is closed, any further packets to be delivered need to be handled by the "backup" packet deliverer. The original implementation simply tried to reuse the primary delivery/routing mechanism, which resulted in a recursive call. This has been replaced with a packet deliverer that will route undeliverable message packets into the offline store.
-
Tom Evans authored
The connection close listener initiates a presence broadcast to advertise its "unavailable" status. The current connection must be marked closed before this occurs, so the presence stanza will not be delivered to the newly closed connection. Note that the synchronized block alone does not accomplish this because the presence broadcast is delivered via that same thread that is currently closing the connection, thus it already possesses the sync object lock. Also, note that the SessionManager should exclude the originating JID when sending presence broadcasts to the user's other available session(s).
-
- 12 Jan, 2015 1 commit
-
-
Tom Evans authored
This patch is to prevent a stack overflow in certain exception cases where a connection has been closed, but its corresponding session is still present in the routing table.
-
- 11 Jan, 2015 2 commits
-
-
Florian Schmaus authored
Also decrease the size of the critical section the lock protects. Related to OF-857.
-
Tom Evans authored
Use a lock to ensure the integrity of IoSession (MINA), especially when using compression or TLS filters
-
- 17 Dec, 2014 1 commit
-
-
Christian Schudt authored
-
- 09 Dec, 2014 1 commit
-
-
Tom Evans authored
Updates the MINA 2.0.9 core to fix a locking issue documented here: https://issues.apache.org/jira/browse/DIRMINA-995 Also updates connection manager and thread pool configurations to better allocate resources within the JVM.
-
- 07 Aug, 2014 1 commit
-
-
jackrabbit128 authored
- install ReadThrottleFilterBuilder into filter chains - adjust SSLFilter positioning in chain so that ReadThrottleFilter works correctly
-
- 31 May, 2014 1 commit
-
-
André Berenguel authored
-
- 26 Apr, 2014 1 commit
-
-
Tom Evans authored
Ensure that async packets are not lost when a connection is dropped/reset by peer.
-
- 19 Feb, 2012 1 commit
-
-
guus authored
git-svn-id: http://svn.igniterealtime.org/svn/repos/openfire/trunk@13001 b35dd754-fafc-0310-a699-88a17e54d16e
-
- 22 Aug, 2010 1 commit
-
-
guus authored
git-svn-id: http://svn.igniterealtime.org/svn/repos/openfire/trunk@11845 b35dd754-fafc-0310-a699-88a17e54d16e
-
- 07 Feb, 2010 1 commit
-
-
guus authored
git-svn-id: http://svn.igniterealtime.org/svn/repos/openfire/trunk@11608 b35dd754-fafc-0310-a699-88a17e54d16e
-
- 09 Nov, 2009 1 commit
-
-
guus authored
git-svn-id: http://svn.igniterealtime.org/svn/repos/openfire/trunk@11388 b35dd754-fafc-0310-a699-88a17e54d16e
-
- 30 Sep, 2009 1 commit
-
-
Matt Tucker authored
git-svn-id: http://svn.igniterealtime.org/svn/repos/openfire/trunk@11291 b35dd754-fafc-0310-a699-88a17e54d16e
-
- 16 Jul, 2008 1 commit
-
-
Gaston Dombiak authored
git-svn-id: http://svn.igniterealtime.org/svn/repos/openfire/trunk@10683 b35dd754-fafc-0310-a699-88a17e54d16e
-
- 11 Jun, 2008 1 commit
-
-
Gaston Dombiak authored
git-svn-id: http://svn.igniterealtime.org/svn/repos/openfire/trunk@10511 b35dd754-fafc-0310-a699-88a17e54d16e
-
- 11 Apr, 2008 1 commit
-
-
Gaston Dombiak authored
git-svn-id: http://svn.igniterealtime.org/svn/repos/openfire/trunk@10204 b35dd754-fafc-0310-a699-88a17e54d16e
-
- 04 Dec, 2007 1 commit
-
-
Gaston Dombiak authored
git-svn-id: http://svn.igniterealtime.org/svn/repos/openfire/trunk@9565 b35dd754-fafc-0310-a699-88a17e54d16e
-
- 15 Nov, 2007 1 commit
-
-
Jay Kline authored
git-svn-id: http://svn.igniterealtime.org/svn/repos/openfire/trunk@9506 b35dd754-fafc-0310-a699-88a17e54d16e
-
- 22 Oct, 2007 1 commit
-
-
Gaston Dombiak authored
git-svn-id: http://svn.igniterealtime.org/svn/repos/openfire/trunk@9348 b35dd754-fafc-0310-a699-88a17e54d16e
-
- 12 Sep, 2007 1 commit
-
-
Gaston Dombiak authored
Refactoring work. Exposed SSLSession in Connection and rewrote startTLS to accept client authentication mode as a param. git-svn-id: http://svn.igniterealtime.org/svn/repos/openfire/trunk@9107 b35dd754-fafc-0310-a699-88a17e54d16e
-
- 22 Jun, 2007 1 commit
-
-
Gaston Dombiak authored
More optimization work. Reduce number of byte[] used by CharserEncoder by having an encoder per thread. git-svn-id: http://svn.igniterealtime.org/svn/repos/openfire/trunk@8606 b35dd754-fafc-0310-a699-88a17e54d16e
-
- 30 May, 2007 1 commit
-
-
Gaston Dombiak authored
git-svn-id: http://svn.igniterealtime.org/svn/repos/openfire/trunk@8405 b35dd754-fafc-0310-a699-88a17e54d16e
-
- 19 May, 2007 1 commit
-
-
Gaston Dombiak authored
git-svn-id: http://svn.igniterealtime.org/svn/repos/openfire/trunk@8358 b35dd754-fafc-0310-a699-88a17e54d16e
-