14 Star 60 Fork 276

OpenHarmony / developtools_hdc

 / 详情

[问题咨询]: 开机后如果不快速执行hdc,后面再执行命令hdc shell就会报错connect failed,重启电脑才好,1.2.0a版本 win10系统,推测是端口占用??

待办的
创建于  
2024-01-15 10:45

问题描述

请问是否有解决方法呢?
以下是我找到的报错源码部分,请问这个报错是啥意思呢?
developtools/hdc/src/host/client.cpp

501  void HdcClient::Connect(uv_connect_t *connection, int status)
502  {
503      HdcClient *thisClass = (HdcClient *)connection->data;
504      delete connection;
505      HChannel hChannel = reinterpret_cast<HChannel>(thisClass->channel);
506      if (status < 0 || uv_is_closing((const uv_handle_t *)&hChannel->hWorkTCP)) {
507          WRITE_LOG(LOG_FATAL, "connect failed");
508          thisClass->FreeChannel(hChannel->channelId);
509          return;
510      }
511      thisClass->BindLocalStd(hChannel);
512      Base::SetTcpOptions((uv_tcp_t *)&hChannel->hWorkTCP);
513      uv_read_start((uv_stream_t *)&hChannel->hWorkTCP, AllocCallback, ReadStream);
514  }

评论 (1)

jiale 创建了任务
jiale 添加了
 
question
标签
展开全部操作日志

感谢提交Issue!关于Issue的交互操作,请访问OpenHarmony社区支持命令清单。如果有问题,请联系 @stesen @Faith 。如果需要调整订阅PR、Issue的变更状态,请访问链接

Thanks for submitting the issue. For more commands, please visit OpenHarmony Command List. If you have any questions, please refer to committer @stesen @Faith for help. If you need to change the subscription of a Pull Request or Issue, please visit the link.

openharmony_ci 添加了
 
waiting_for_assign
标签

登录 后才可以发表评论

状态
负责人
项目
里程碑
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
开始日期   -   截止日期
-
置顶选项
优先级
预计工期 (小时)
参与者(2)
7387629 openharmony ci 1656582662
1
https://gitee.com/openharmony/developtools_hdc.git
git@gitee.com:openharmony/developtools_hdc.git
openharmony
developtools_hdc
developtools_hdc

搜索帮助