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
e9a6eb55
Commit
e9a6eb55
authored
Mar 21, 2016
by
daryl herzmann
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #561 from akrherz/of829
OF-929 prevent ghosts by removing ioSession check
parents
ca122761
e5182f23
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
8 deletions
+0
-8
NIOConnection.java
src/java/org/jivesoftware/openfire/nio/NIOConnection.java
+0
-8
No files found.
src/java/org/jivesoftware/openfire/nio/NIOConnection.java
View file @
e9a6eb55
...
@@ -295,10 +295,6 @@ public class NIOConnection implements Connection {
...
@@ -295,10 +295,6 @@ public class NIOConnection implements Connection {
IoBuffer
buffer
=
IoBuffer
.
allocate
(
4096
);
IoBuffer
buffer
=
IoBuffer
.
allocate
(
4096
);
buffer
.
setAutoExpand
(
true
);
buffer
.
setAutoExpand
(
true
);
try
{
try
{
// OF-464: if the connection has been dropped, fail over to backupDeliverer (offline)
if
(!
ioSession
.
isConnected
())
{
throw
new
IOException
(
"Connection reset/closed by peer"
);
}
buffer
.
putString
(
packet
.
getElement
().
asXML
(),
encoder
.
get
());
buffer
.
putString
(
packet
.
getElement
().
asXML
(),
encoder
.
get
());
if
(
flashClient
)
{
if
(
flashClient
)
{
buffer
.
put
((
byte
)
'\0'
);
buffer
.
put
((
byte
)
'\0'
);
...
@@ -344,10 +340,6 @@ public class NIOConnection implements Connection {
...
@@ -344,10 +340,6 @@ public class NIOConnection implements Connection {
buffer
.
flip
();
buffer
.
flip
();
ioSessionLock
.
lock
();
ioSessionLock
.
lock
();
try
{
try
{
// OF-464: handle dropped connections (no backupDeliverer in this case?)
if
(!
ioSession
.
isConnected
())
{
throw
new
IOException
(
"Connection reset/closed by peer"
);
}
ioSession
.
write
(
buffer
);
ioSession
.
write
(
buffer
);
}
}
finally
{
finally
{
...
...
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