mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
Fix #2837: Callback: Support stream_url and stream_id. v5.0.55
This commit is contained in:
parent
9c6774b644
commit
6a108fab6d
14 changed files with 184 additions and 80 deletions
|
@ -131,10 +131,14 @@ private:
|
|||
SrsTcpConnection* skt;
|
||||
SrsSslConnection* ssl;
|
||||
SrsHttpConn* conn;
|
||||
// We should never enable the stat, unless HTTP stream connection requires.
|
||||
bool enable_stat_;
|
||||
public:
|
||||
SrsHttpxConn(bool https, ISrsResourceManager* cm, srs_netfd_t fd, ISrsHttpServeMux* m, std::string cip, int port);
|
||||
virtual ~SrsHttpxConn();
|
||||
public:
|
||||
// Require statistic about HTTP connection, for HTTP streaming clients only.
|
||||
void set_enable_stat(bool v);
|
||||
// Directly read a HTTP request message.
|
||||
// It's exported for HTTP stream, such as HTTP FLV, only need to write to client when
|
||||
// serving it, but we need to start a thread to read message to detect whether FD is closed.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue