Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
When the cm_svc_run thread starts, svc->contexts will be initialized with four elements. When reallocating memory due to an increased element count, svc->contexts will point to new addresses, whereas the fds variable in the cm_svc_run thread is free of the address, which will result in subsequent cm_svc_run threads running incorrectly. So we need to update the fds variable every time the cm_svc_process_sock function is processed. Fixes: b60c79d ("rsockets: Use service thread to accept connections") Signed-off-by: linxiaochou <929331108@qq.com>
- Loading branch information