SharpAdb / AdvancedSharpAdbClient

AdvancedSharpAdbClient is a .NET library that allows .NET, Mono and Unity applications to communicate with Android devices. It's improved version of SharpAdbClient.
https://sharpadb.github.io
Apache License 2.0
203 stars 54 forks source link

ExtendedSocketException #72

Open RAREGUN opened 1 year ago

RAREGUN commented 1 year ago

Describe the bug

After a long (about two hours) work with 6 devices at the same time, everything stops working and exceptions begin to be thrown:

System.Net.Internals.SocketExceptionFactory+ExtendedSocketException: An operation on a socket could not be performed
because the system lacked sufficient buffer space or because a queue was full. 127.0.0.1:5037

Please tell me what could be the solution to my problem?

Steps to reproduce the bug

  1. Long work with the library

Expected behavior

No response

Screenshots

No response

NuGet package version

2.5.7

.NET Platform

.NET 7

Platform type

Windows

System version

ReviOS 11 23.03

IDE

Rider 2023

Additional context

No response

wherewhere commented 1 year ago

I have no idea. It seems because the port is all be using. Since some of connection is not close currently and then the port has be occupied. Exception: system lacked sufficient buffer space or because a queue was full? windows连接过多,导致端口耗尽的解决