We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Task.Delay(-1, token) is creating a Task for every client that is running forever:
FtpServer/src/FubarDev.FtpServer/MultiBindingTcpListener.cs
Line 121 in edfe7a7
A quick and dirty workaround would be this:
private async Task<bool> DelayTask(CancellationToken token1, CancellationToken token2) { while (!token1.IsCancellationRequested && !token2.IsCancellationRequested) { await Task.Delay(100); } return true; } public async Task<TcpClient> WaitAnyTcpClientAsync(CancellationToken token) { var tokenToDispose = new CancellationTokenSource(); var cancellationTask = Task.Run(() => DelayTask(token, tokenToDispose.Token)); do { ... } while (result == null); tokenToDispose.Cancel(); }
The text was updated successfully, but these errors were encountered:
An update with a fix for this memory leak whould be very nice. I occur the same issue...
Is there already a date when this package gets updated @fubar-coder ? :)
Sorry, something went wrong.
Push
U P 💯
fubar-coder
No branches or pull requests
Task.Delay(-1, token) is creating a Task for every client that is running forever:
FtpServer/src/FubarDev.FtpServer/MultiBindingTcpListener.cs
Line 121 in edfe7a7
A quick and dirty workaround would be this:
The text was updated successfully, but these errors were encountered: