msys2 / MSYS2-packages

Package scripts for MSYS2.
https://packages.msys2.org
BSD 3-Clause "New" or "Revised" License
1.28k stars 483 forks source link

sshd.exe using 100% of CPU core #2668

Open juangburgos opened 2 years ago

juangburgos commented 2 years ago

Describe the issue

When SSH client disconnects gracefully (manual close of conection, using exit on terminal or just closing it) it all goes fine.

When connection with client terminates due to socket error or direct socket close, the sshd.exe server eats a full core.

Steps to Reproduce the Problem

  1. Run the SSH server sshd.exe.
  2. Connect normally with a client.
  3. Disconnect by directly closing socket (e.g. using cports.exe).
  4. Disconnect manually and all goes OK (exit or close terminal).

https://user-images.githubusercontent.com/4707341/137887750-5364b867-e5df-4c3a-854b-66a70124c3c2.mp4

Additional Context: Operating System, Screenshots

Conditions:

aldervall commented 3 months ago

Got this issue also. SSH installed on Windows server 2022 21H2.