1
0
Fork 0
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:
winlin 2015-05-04 18:11:52 +08:00
parent a95fd6d140
commit ea1e015a4e
7 changed files with 104 additions and 34 deletions

View file

@ -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