log.info("keep alive [{}]", config.isKeepAlive());
if(config.isSecure()) {
log.info("enable SSL");
Server server = new TcpServer(
new SSLDecoder(new HttpDecoder(config)),
new SSLEncoder(),
new HttpHandler(controller, config),
config.getMaxConnectionTimeout());
server.start(config.getHost(), config.getPort());
} else {
Server server = new TcpServer(
new HttpDecoder(config),
new HttpEncoder(),
new HttpHandler(controller, config),
config.getMaxConnectionTimeout());
server.start(config.getHost(), config.getPort());
}