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
3e10288f
Commit
3e10288f
authored
Jan 12, 2017
by
Hal Deadman
Committed by
daryl herzmann
Feb 16, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix EXTERNAL auth stackoverflow error
parent
96108d07
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
2 deletions
+15
-2
HttpSession.java
src/java/org/jivesoftware/openfire/http/HttpSession.java
+15
-2
No files found.
src/java/org/jivesoftware/openfire/http/HttpSession.java
View file @
3e10288f
...
...
@@ -47,6 +47,8 @@ import org.jivesoftware.openfire.net.SASLAuthentication;
import
org.jivesoftware.openfire.net.VirtualConnection
;
import
org.jivesoftware.openfire.session.LocalClientSession
;
import
org.jivesoftware.openfire.spi.ConnectionConfiguration
;
import
org.jivesoftware.openfire.spi.ConnectionManagerImpl
;
import
org.jivesoftware.openfire.spi.ConnectionType
;
import
org.jivesoftware.util.JiveConstants
;
import
org.jivesoftware.util.JiveGlobals
;
import
org.jivesoftware.util.TaskEngine
;
...
...
@@ -134,7 +136,7 @@ public class HttpSession extends LocalClientSession {
public
HttpSession
(
PacketDeliverer
backupDeliverer
,
String
serverName
,
InetAddress
address
,
StreamID
streamID
,
long
rid
,
HttpConnection
connection
,
Locale
language
)
{
super
(
serverName
,
new
HttpVirtualConnection
(
address
),
streamID
,
language
);
super
(
serverName
,
new
HttpVirtualConnection
(
address
,
ConnectionType
.
SOCKET_C2S
),
streamID
,
language
);
this
.
isClosed
=
false
;
this
.
lastActivity
=
System
.
currentTimeMillis
();
this
.
lastRequestID
=
rid
;
...
...
@@ -1101,9 +1103,16 @@ public class HttpSession extends LocalClientSession {
private
InetAddress
address
;
private
ConnectionConfiguration
configuration
;
private
ConnectionType
connectionType
;
public
HttpVirtualConnection
(
InetAddress
address
)
{
this
.
address
=
address
;
this
.
connectionType
=
ConnectionType
.
SOCKET_C2S
;
}
public
HttpVirtualConnection
(
InetAddress
address
,
ConnectionType
connectionType
)
{
this
.
address
=
address
;
this
.
connectionType
=
connectionType
;
}
@Override
...
...
@@ -1143,7 +1152,11 @@ public class HttpSession extends LocalClientSession {
@Override
public
ConnectionConfiguration
getConfiguration
()
{
return
session
.
getConnection
().
getConfiguration
();
if
(
configuration
==
null
)
{
final
ConnectionManagerImpl
connectionManager
=
((
ConnectionManagerImpl
)
XMPPServer
.
getInstance
().
getConnectionManager
());
configuration
=
connectionManager
.
getListener
(
connectionType
,
true
).
generateConnectionConfiguration
();
}
return
configuration
;
}
@Override
...
...
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