fix socket message output after http request.