Skip to content

UdpSession会收到重复信息 #134

@Princebin

Description

@Princebin

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

UdpSession配置监听端口后,打开,然后关闭,再配置监听端口后,打开。会收到2遍同一个信息。版本号4.2.12
UdpSession udpSession = new UdpSession();
await udpSession.SetupAsync(new TouchSocketConfig()
.SetBindIPHost(new IPHost(9023)));
await udpSession.StartAsync();
await Task.Delay(2000);
await udpSession.StopAsync();
await udpSession.SetupAsync(new TouchSocketConfig()
.SetBindIPHost(new IPHost(9023)));
await udpSession.StartAsync()

Expected Behavior

不会重复收到

Steps To Reproduce

No response

Exceptions (if any)

No response

.NET Version

net10

Anything else?

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions