1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

enable the SRS_PERF_TCP_NODELAY and add config tcp_nodelay. 2.0.182

This commit is contained in:
winlin 2015-08-12 13:22:09 +08:00
parent 267846a3fa
commit 9fb4640a8f
9 changed files with 44 additions and 12 deletions

View file

@ -522,6 +522,10 @@ public:
*/
// TODO: FIXME: add utest for min_latency.
virtual bool get_realtime_enabled(std::string vhost);
/**
* whether enable tcp nodelay for all clients of vhost.
*/
virtual bool get_tcp_nodelay(std::string vhost);
private:
/**
* get the global chunk size.