diff --git a/trunk/src/service/srs_service_http_client.hpp b/trunk/src/service/srs_service_http_client.hpp index 9c07dd817..9781cbced 100644 --- a/trunk/src/service/srs_service_http_client.hpp +++ b/trunk/src/service/srs_service_http_client.hpp @@ -41,7 +41,7 @@ class SrsWallClock; class SrsTcpClient; // The default timeout for http client. -#define SRS_HTTP_CLIENT_TIMEOUT (30// SRS_UTIME_SECONDS) +#define SRS_HTTP_CLIENT_TIMEOUT (30 * SRS_UTIME_SECONDS) // The client to GET/POST/PUT/DELETE over HTTP. // @remark We will reuse the TCP transport until initialize or channel error, diff --git a/trunk/src/service/srs_service_st.hpp b/trunk/src/service/srs_service_st.hpp index f6843c8ac..7c1bcba2c 100644 --- a/trunk/src/service/srs_service_st.hpp +++ b/trunk/src/service/srs_service_st.hpp @@ -140,7 +140,7 @@ public: // The client to connect to server over TCP. // User must never reuse the client when close it. // Usage: -// SrsTcpClient client("127.0.0.1", 1935, 9// SRS_UTIME_SECONDS); +// SrsTcpClient client("127.0.0.1", 1935, 9 * SRS_UTIME_SECONDS); // client.connect(); // client.write("Hello world!", 12, NULL); // client.read(buf, 4096, NULL);