diff --git a/trunk/src/app/srs_app_http_conn.cpp b/trunk/src/app/srs_app_http_conn.cpp index 335717999..3271a0f56 100644 --- a/trunk/src/app/srs_app_http_conn.cpp +++ b/trunk/src/app/srs_app_http_conn.cpp @@ -225,8 +225,8 @@ srs_error_t SrsHttpConn::process_requests(SrsRequest** preq) } // ok, handle http request. - if ((err = process_request(&writer, req)) != srs_success) { - return srs_error_wrap(err, "process request"); + if ((err = process_request(&writer, req, req_id)) != srs_success) { + return srs_error_wrap(err, "process request=%d", req_id); } // After the request is processed. @@ -244,12 +244,12 @@ srs_error_t SrsHttpConn::process_requests(SrsRequest** preq) return err; } -srs_error_t SrsHttpConn::process_request(ISrsHttpResponseWriter* w, ISrsHttpMessage* r) +srs_error_t SrsHttpConn::process_request(ISrsHttpResponseWriter* w, ISrsHttpMessage* r, int rid) { srs_error_t err = srs_success; - srs_trace("HTTP %s:%d %s %s, content-length=%" PRId64 "", - ip.c_str(), port, r->method_str().c_str(), r->url().c_str(), r->content_length()); + srs_trace("HTTP #%d %s:%d %s %s, content-length=%" PRId64 "", rid, ip.c_str(), port, + r->method_str().c_str(), r->url().c_str(), r->content_length()); // use cors server mux to serve http request, which will proxy to http_remux. if ((err = cors->serve_http(w, r)) != srs_success) { diff --git a/trunk/src/app/srs_app_http_conn.hpp b/trunk/src/app/srs_app_http_conn.hpp index 07d51e16e..b58dd00ba 100644 --- a/trunk/src/app/srs_app_http_conn.hpp +++ b/trunk/src/app/srs_app_http_conn.hpp @@ -119,8 +119,7 @@ public: private: virtual srs_error_t do_cycle(); virtual srs_error_t process_requests(SrsRequest** preq); -private: - virtual srs_error_t process_request(ISrsHttpResponseWriter* w, ISrsHttpMessage* r); + virtual srs_error_t process_request(ISrsHttpResponseWriter* w, ISrsHttpMessage* r, int rid); // When the connection disconnect, call this method. // e.g. log msg of connection and report to other system. // @param request: request which is converted by the last http message.