DragonOS icon indicating copy to clipboard operation
DragonOS copied to clipboard

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

Open val213 opened this issue 1 year ago • 2 comments

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

重现步骤 进系统后执行: 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 avatar Nov 02 '24 11:11 val213

已修复 #1032

Samuka007 avatar Nov 18 '24 07:11 Samuka007

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

Samuka007 avatar Nov 18 '24 07:11 Samuka007