change http socket timeout.  Fix NPE in logging.  Fix warning.