mirror of
https://gitee.com/openharmony/communication_ipc
synced 2025-02-17 07:20:46 +00:00
相同的socket再次listen 或bind时被shutdown问题
Signed-off-by: wanderer-dl122 <dengliang21@huawei.com>
This commit is contained in:
parent
3f37499567
commit
5ba71a04b3
@ -15,12 +15,12 @@
|
||||
|
||||
#include "databus_socket_listener.h"
|
||||
|
||||
#include "softbus_error_code.h"
|
||||
#include "dbinder_databus_invoker.h"
|
||||
#include "ipc_debug.h"
|
||||
#include "ipc_process_skeleton.h"
|
||||
#include "ipc_thread_skeleton.h"
|
||||
#include "log_tags.h"
|
||||
#include "softbus_error_code.h"
|
||||
|
||||
namespace OHOS {
|
||||
static constexpr OHOS::HiviewDFX::HiLogLabel LABEL = { LOG_CORE, LOG_ID_RPC_REMOTE_LISTENER, "DatabusSocketListener" };
|
||||
|
@ -1205,6 +1205,7 @@ bool IPCProcessSkeleton::CreateSoftbusServer(const std::string &name)
|
||||
{
|
||||
CHECK_INSTANCE_EXIT_WITH_RETVAL(exitFlag_, false);
|
||||
if (name.empty()) {
|
||||
ZLOGE(LOG_LABEL, "server name is empty");
|
||||
return false;
|
||||
}
|
||||
std::shared_ptr<DatabusSocketListener> listener =
|
||||
|
@ -18,10 +18,10 @@
|
||||
#include <cinttypes>
|
||||
#include "securec.h"
|
||||
|
||||
#include "softbus_error_code.h"
|
||||
#include "dbinder_error_code.h"
|
||||
#include "dbinder_log.h"
|
||||
#include "ipc_types.h"
|
||||
#include "softbus_error_code.h"
|
||||
|
||||
namespace OHOS {
|
||||
static constexpr OHOS::HiviewDFX::HiLogLabel LOG_LABEL = { LOG_CORE, LOG_ID_RPC_REMOTE_LISTENER,
|
||||
|
Loading…
x
Reference in New Issue
Block a user