Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
Openfire
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
Openfire
Commits
ad6fb662
Commit
ad6fb662
authored
Jun 09, 2015
by
daryl herzmann
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #229 from dwd/moar-deadlock
Do not synchronize on isClosed()
parents
47d44217
389c17c7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
NIOConnection.java
src/java/org/jivesoftware/openfire/nio/NIOConnection.java
+3
-3
No files found.
src/java/org/jivesoftware/openfire/nio/NIOConnection.java
View file @
ad6fb662
...
...
@@ -116,7 +116,7 @@ public class NIOConnection implements Connection {
* keep this flag to avoid using the connection between #close was used and the socket is actually
* closed.
*/
private
State
state
;
private
volatile
State
state
;
/**
* Lock used to ensure the integrity of the underlying IoSession (refer to
...
...
@@ -288,7 +288,7 @@ public class NIOConnection implements Connection {
session
=
owner
;
}
public
synchronized
boolean
isClosed
()
{
public
boolean
isClosed
()
{
return
state
==
State
.
CLOSED
;
}
...
...
@@ -297,7 +297,7 @@ public class NIOConnection implements Connection {
}
public
void
deliver
(
Packet
packet
)
throws
UnauthorizedException
{
if
(
isClosed
()
)
{
if
(
state
!=
State
.
RUNNING
)
{
// OF-857: Do not allow the backup deliverer to recurse
if
(
backupDeliverer
==
null
)
{
Log
.
error
(
"Failed to deliver packet: "
+
packet
.
toXML
());
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment