Skip to content

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

@val213

Description

@val213
  • 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))

Metadata

Metadata

Assignees

Labels

A-networkArea: 网络子系统In-progressbugSomething isn't workingbug-report这是一个bug报告(如果确认是一个bug,请管理人员添加`bug` label)

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions