相同的socket再次listen 或bind时被shutdown问题

Signed-off-by: wanderer-dl122 <dengliang21@huawei.com>
This commit is contained in:
wanderer-dl122 2024-05-08 17:21:46 +08:00
parent 3f37499567
commit 5ba71a04b3
3 changed files with 3 additions and 2 deletions

View File

@ -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" };

View File

@ -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 =

View File

@ -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,