mirror of
https://gitee.com/openharmony/developtools_hdc
synced 2024-11-23 07:02:43 +00:00
!1631 [5.0.1]fix fd leak in tcp mode
Merge pull request !1631 from liurantao/OpenHarmony-5.0.1-Release
This commit is contained in:
commit
c11b321230
@ -575,6 +575,7 @@ void HdcSessionBase::FreeSessionContinue(HSession hSession)
|
||||
if (hSession->connType == CONN_TCP) {
|
||||
// Turn off TCP to prevent continuing writing
|
||||
Base::TryCloseHandle((uv_handle_t *)&hSession->hWorkTCP, true, closeSessionTCPHandle);
|
||||
Base::CloseFd(hSession->dataFd[STREAM_WORK]);
|
||||
}
|
||||
hSession->availTailIndex = 0;
|
||||
if (hSession->ioBuf) {
|
||||
|
Loading…
Reference in New Issue
Block a user