#1300 Problem of fd leakage when pulling non-existent http-flv stream#1304
#1300 Problem of fd leakage when pulling non-existent http-flv stream#1304rageJune wants to merge 1 commit intoossrs:3.0releasefrom
Conversation
| SrsAutoFree(ISrsHttpMessage, req); | ||
|
|
||
| if ((err = conn->pop_message(&req)) != srs_success) { | ||
| trd_err = err; |
There was a problem hiding this comment.
The err here is shared by trd_err and wrapped err, we should free the trd_err then copy err to it.
|
First, I will set the
|
|
Analyze the code and find that it is a low-level coroutine object. After actively exiting, the pull function cannot obtain the error. The upper-level code will start a thread to read messages from the client. The And this error code is stored in the return value of the Usually, when the stop function stops the thread, the return value of the coroutine is obtained so that In fact, there is no place to call
|
|
SRS2, SRS3, Origin, and Edge modes all passed the test without any FD leakage issues. Fixed.
|
#1300 Small modification based on #636
TRANS_BY_GPT3