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
d415e63f
Commit
d415e63f
authored
May 29, 2015
by
Guus der Kinderen
Committed by
Dave Cridland
May 29, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
OF-883: When an exception occurs, close the connection (not just the MINA session).
parent
a6f3a972
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
ConnectionHandler.java
...java/org/jivesoftware/openfire/nio/ConnectionHandler.java
+5
-2
No files found.
src/java/org/jivesoftware/openfire/nio/ConnectionHandler.java
View file @
d415e63f
...
@@ -153,7 +153,7 @@ public abstract class ConnectionHandler extends IoHandlerAdapter {
...
@@ -153,7 +153,7 @@ public abstract class ConnectionHandler extends IoHandlerAdapter {
@Override
@Override
public
void
exceptionCaught
(
IoSession
session
,
Throwable
cause
)
throws
Exception
{
public
void
exceptionCaught
(
IoSession
session
,
Throwable
cause
)
throws
Exception
{
Log
.
warn
(
"Closing
session due to except
ion: "
+
session
,
cause
);
Log
.
warn
(
"Closing
connection due to exception in sess
ion: "
+
session
,
cause
);
try
{
try
{
// OF-524: Determine stream:error message.
// OF-524: Determine stream:error message.
...
@@ -167,7 +167,10 @@ public abstract class ConnectionHandler extends IoHandlerAdapter {
...
@@ -167,7 +167,10 @@ public abstract class ConnectionHandler extends IoHandlerAdapter {
final
Connection
connection
=
(
Connection
)
session
.
getAttribute
(
CONNECTION
);
final
Connection
connection
=
(
Connection
)
session
.
getAttribute
(
CONNECTION
);
connection
.
deliverRawText
(
error
.
toXML
()
);
connection
.
deliverRawText
(
error
.
toXML
()
);
}
finally
{
}
finally
{
session
.
close
(
false
);
final
Connection
connection
=
(
Connection
)
session
.
getAttribute
(
CONNECTION
);
if
(
connection
!=
null
)
{
connection
.
close
();
}
}
}
}
}
...
...
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