mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
Fix #786, simply don't reuse object. 3.0.20
This commit is contained in:
parent
7680ac04ad
commit
308c6fee18
9 changed files with 38 additions and 19 deletions
|
@ -182,8 +182,11 @@ private:
|
|||
// The underlayer st fd.
|
||||
st_netfd_t stfd;
|
||||
public:
|
||||
SrsStSocket(st_netfd_t client_stfd);
|
||||
SrsStSocket();
|
||||
virtual ~SrsStSocket();
|
||||
public:
|
||||
// Initialize the socket with stfd, user must manage it.
|
||||
virtual int initialize(st_netfd_t fd);
|
||||
public:
|
||||
virtual bool is_never_timeout(int64_t tm);
|
||||
virtual void set_recv_timeout(int64_t tm);
|
||||
|
@ -240,6 +243,7 @@ public:
|
|||
* @remark We will close the exists connection before do connect.
|
||||
*/
|
||||
virtual int connect();
|
||||
private:
|
||||
/**
|
||||
* Close the connection to server.
|
||||
* @remark User should never use the client when close it.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue