mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

Jean-Noel Rouvignac
27.45.2013 259df1b53212b181f0e7da7cd0735eb008e66229
refs
author Jean-Noel Rouvignac <jean-noel.rouvignac@forgerock.com>
Monday, May 27, 2013 13:45 +0200
committer Jean-Noel Rouvignac <jean-noel.rouvignac@forgerock.com>
Monday, May 27, 2013 13:45 +0200
commit259df1b53212b181f0e7da7cd0735eb008e66229
tree c786228f73e82f88e71425791b6f175826e29fe3 tree | zip | gz
parent 7fa863a0f2e0115d16d5fdba2ba87a6be7769db1 view | diff
OPENDJ-942 (CR-1744) HTTP Connection Handler - Running an authenticated request at "/" hangs


The problem was due to a misconfiguration of Grizzly HTTP server.
Using HttpServer.createSimpleServer() to create the server means Grizzly adds unwanted network listeners and HTTP handlers that interfere with the expected behaviour of the application.
Problem was solved by doing a direct configuration of the HTTP server, removing unwanted mappings and servlets.


HTTPConnectionHandler.java:
In startHttpServer(), extracted methods createHttpServer() and createAndRegisterServlet().
In createHttpServer(), do not use HttpServer.createSimpleServer() anymore and do a direct, clutterless configuration.
In setHttpStatsProbe() and getHttpConfig(), added an HTTPServer parameter so this method can be used before or after creating the HTTPServer.
1 files modified
160 ■■■■ changed files
opends/src/server/org/opends/server/protocols/http/HTTPConnectionHandler.java 160 ●●●● diff | view | raw | blame | history