mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
fix the http read chunked encoding bug.
This commit is contained in:
parent
a95fd6d140
commit
ea1e015a4e
7 changed files with 104 additions and 34 deletions
|
@ -388,10 +388,24 @@ public:
|
|||
virtual void cleanup();
|
||||
protected:
|
||||
virtual int do_cycle();
|
||||
protected:
|
||||
// when got http message,
|
||||
// for the static service or api, discard any body.
|
||||
// for the stream caster, for instance, http flv streaming, may discard the flv header or not.
|
||||
virtual int on_got_http_message(SrsHttpMessage* msg) = 0;
|
||||
private:
|
||||
virtual int process_request(ISrsHttpResponseWriter* w, SrsHttpMessage* r);
|
||||
};
|
||||
|
||||
class SrsStaticHttpConn : public SrsHttpConn
|
||||
{
|
||||
public:
|
||||
SrsStaticHttpConn(IConnectionManager* cm, st_netfd_t fd, SrsHttpServeMux* m);
|
||||
virtual ~SrsStaticHttpConn();
|
||||
public:
|
||||
virtual int on_got_http_message(SrsHttpMessage* msg);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue