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

Jean-Noel Rouvignac
27.45.2013 7e3faaa7ffaf60a6f91c86bfaa3807f55b0b24d9
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
commit7e3faaa7ffaf60a6f91c86bfaa3807f55b0b24d9
tree 8abb7de7adf838fb66d834164fda66c12a4b651e tree | zip | gz
parent e21fa7f2aadc6bcfb408b0f7a03a0c0cab7ef57a 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
opendj-sdk/opends/src/server/org/opends/server/protocols/http/HTTPConnectionHandler.java 160 ●●●● diff | view | raw | blame | history