RT-Thread / RT-Thread/rt-thread

函数at_poll调用sal_get_socket函数获取不到正确的socket号,导致只能使用一个socket通信

Open
#8,376 0 comments 0 reactions 1 assignee View on GitHub

@Rbb666 is already working on this.

Since Dec 22, 2023.

bug
Dominant language
C
Stars
12.2k
Forks
5.4k
Avg merge
4d 12h
Merged PRs (30d)
40

Description

版本v5.0.2 文件af_inet_at.c文件中 函数static int at_poll(struct dfs_file *file, struct rt_pollreq *req)中调用函数sal_sock = sal_get_socket((int) file->data)获取sal_sock 号不正确,应该改为sal_sock = sal_get_socket((int) file->vnode->data);因为在申请socket的时候,申请到的socket号保存到 file->vnode->data这个参数中。

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.