fix http connection is close bug