rafaelweingartner commented on a change in pull request #2762: Make HTTP 
handler of embedded server to be configured
URL: https://github.com/apache/cloudstack/pull/2762#discussion_r204948367
 
 

 ##########
 File path: client/src/main/java/org/apache/cloudstack/ServerDaemon.java
 ##########
 @@ -163,11 +171,13 @@ public void start() throws Exception {
         httpConfig.setSendDateHeader(false);
 
         // HTTP Connector
-        final ServerConnector httpConnector = new ServerConnector(server, new 
HttpConnectionFactory(httpConfig));
-        httpConnector.setPort(httpPort);
-        httpConnector.setHost(bindInterface);
-        httpConnector.setIdleTimeout(30000);
-        server.addConnector(httpConnector);
+        if (httpEnable) {
+            final ServerConnector httpConnector = new ServerConnector(server, 
new HttpConnectionFactory(httpConfig));
 
 Review comment:
   I still think that extracting code to more specific ones apply everywhere 
(no special cases!).  I also abhor inline comments ;)
   
   I am not opposed to the code here, but you know, it is not a review if I am 
not able to share my opinion.
   
   Thank for the PR anyways +1
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to