Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG REPORT] 重构网络子分支下,使用 TCP 查询 DNS 报错 os error 115 #1028

Open
val213 opened this issue Nov 2, 2024 · 2 comments
Assignees
Labels
A-network Area: 网络子系统 bug Something isn't working bug-report 这是一个bug报告(如果确认是一个bug,请管理人员添加`bug` label) In-progress

Comments

@val213
Copy link
Collaborator

val213 commented Nov 2, 2024

  • DragonOS版本:feat-network-rebuild: 055c144

重现步骤
进系统后执行: dog example.net -T
期望行为
得到 DNS 查询结果回显

屏幕截图
下图中的日志是修改 DNS 查询工具 dog 源码手动添加的日志输出:
image

系统日志

Reading hints from /etc/hosts

Local host hints: LocalHosts { hostnames: {} }

Generating requests for Inputs { domains: [Labels { segments: [(7, "example"), (3, "net")] }], record_types: [A], classes: [IN], resolver_types: [SystemDefault], transport_types: [TCP] }

Using nameserver: "8.8.8.8"

Using transport type: TCP

Generated request: Request { transaction_id: 31909, flags: Flags { response: false, opcode: Query, authoritative: false, truncated: false, recursion_desired: true, recursion_available: false, authentic_data: false, checking_disabled: false, error_code: None }, query: Query { qname: Labels { segments: [(7, "example"), (3, "net")] }, qclass: IN, qtype: A }, additional: Some(OPT { udp_payload_size: 512, higher_bits: 0, edns0_version: 0, flags: 0, data: [] }) }

Total requests generated: 1

Request tuples generated

Sending request 1 of 1

[ DEBUG ] (src/net/socket/family.rs:110)	 AddressFamily::try_from failed: x=2
�[1;33m[ WARN ] �[0m(src/net/socket/inode.rs:176)	 nonblock is not support yet
�[1;33m[ WARN ] �[0m(src/net/socket/inode.rs:180)	 close_on_exec is not support yet
[ DEBUG ] (src/net/socket/family.rs:110)	 AddressFamily::try_from failed: x=2
[ DEBUG ] (src/net/socket/family.rs:110)	 AddressFamily::try_from failed: x=2
�[41m[ ERROR ] �[0m(src/filesystem/vfs/file.rs:626)	 pid: Pid(8) failed to close file: File { inode: Inode { inner: TcpSocket { inner: RwLock { lock: 0, data: UnsafeCell { .. } }, shutdown: Shutdown { bit: 0 }, nonblock: false, wait_queue: WaitQueue(SpinLock { lock: false, data: UnsafeCell { .. } }), self_ref: (Weak), pollee: 5 }, epoll_items: EPollItems { items: SpinLock { lock: false, data: UnsafeCell { .. } } } }, offset: 0, mode: RwLock { lock: 0, data: UnsafeCell { .. } }, file_type: Socket, readdir_subdirs_name: SpinLock { lock: false, data: UnsafeCell { .. } }, private_data: SpinLock { lock: false, data: UnsafeCell { .. } }, cred: Cred { uid: Kuid(0), gid: Kgid(0), suid: Kuid(0), sgid: Kgid(0), euid: Kuid(0), egid: Kgid(0), fsuid: Kuid(0), fsgid: Kgid(0), cap_inheritable: CAP_EMPTY_SET, cap_permitted: CAP_FULL_SET, cap_effective: CAP_FULL_SET, cap_bset: CAP_FULL_SET, cap_ambient: CAP_FULL_SET, group_info: None } }, errno=EINPROGRESS
Error sending request 1: NetworkError(Os { code: 115, kind: Uncategorized, message: "Operation in progress" })

Error [[networkk]:  Operation in progress (os error 115))
@val213 val213 added the bug-report 这是一个bug报告(如果确认是一个bug,请管理人员添加`bug` label) label Nov 2, 2024
@dragonosbot dragonosbot added the needs-triage 这个问题可能需要分类处理。如果已经完成分类,请移除它。 label Nov 2, 2024
@Samuka007 Samuka007 added bug Something isn't working A-network Area: 网络子系统 and removed needs-triage 这个问题可能需要分类处理。如果已经完成分类,请移除它。 labels Nov 7, 2024
@Samuka007
Copy link
Member

已修复 #1032

@Samuka007
Copy link
Member

Samuka007 commented Nov 18, 2024

哦好像只是UDP可以用,TCP仍有问题。

@Samuka007 Samuka007 reopened this Nov 18, 2024
@Samuka007 Samuka007 self-assigned this Nov 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-network Area: 网络子系统 bug Something isn't working bug-report 这是一个bug报告(如果确认是一个bug,请管理人员添加`bug` label) In-progress
Projects
None yet
Development

No branches or pull requests

3 participants