added https option and maxHttpSockets option