Skip to content

TerminatedReadAsync gets stuck in WPF but works in WinForms #82

@chodurkhyun

Description

@chodurkhyun

First of all, thank you for creating and maintaining this excellent Telnet library. I've been using it successfully in a .NET Framework 4.7.2 WinForms application, and it has worked great. However, I'm encountering an issue when migrating to .NET 8.0 WPF environment (on Windows 11). The connection only works properly when milliSecondSpin == 0. When using non-zero milliSecondSpin values, the TerminatedReadAsync method gets stuck.

Interestingly, sometimes after waiting several minutes, it suddenly proceeds, but this behavior is inconsistent.

The server I'm connecting to works perfectly fine with the Windows Telnet client, so the server implementation appears to be standard-compliant.

Belows are my questions:

  1. Are there known issues or special considerations when using this library in WPF applications?
  2. Is there a recommended configuration or workaround for WPF applications?
  3. Why does setting milliSecondSpin = 0 resolve the issue?

Any guidance would be greatly appreciated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions