-
Notifications
You must be signed in to change notification settings - Fork 758
New issue
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
close - IO is still pending on closed socket. read:1, write:0, io:0000023DE45AF900 #1899
Comments
Here is the log on my PC1 with ssh version
|
@hsinyinfu - You can compare the output of ssh.exe -vvv user@ip on both the machines. On the problematic machine, the socket is closed while there is some data pending for read. |
Here is the log with command `ssh.exe -vvv user@ip' on the problematic machine. Could you please tell me where it shows that some data pending for read?
|
Oh, I see.
But how does this happen? And how could I fix this problem? |
@hsinyinfu, I suggest you try to use another terminal. I encounter the same issue as you. If I use the built-in OpenSSH in Visual Studio Code terminal on the same machine, there is no such issue. |
@watson-github Could you please share the version of your built-in OpenSSH with me? |
@hsinyinfu Unfortunately, I have updated my OpenSSH recently to solve another issue. I think it was an very old version, maybe OpenSSH_for_Windows_7. After I update OpenSSH to v8.9p1, there is still such "IO pending" message. But the shell can exit after showing this message. It is not so annoying now.
It seems many factors are related with this issue. I have accepted this workaround. Just FYI, My Windows version is Version 1909(OS Build 18363.1440). |
"OpenSSH for Windows" version
OpenSSH_for_Windows_8.1p1, LibreSSL 3.0.2
OpenSSH_for_Windows_8.6p1, LibreSSL 3.3.3
Server OperatingSystem
Ubuntu 18.04.5 LTS
Client OperatingSystem
Windows 10 Enterprise
What is failing
In my company, I have two PCs in the company network given by IT.
I usually open a CMD window and connect to remote Linux server with command
ssh <account>@<server>
.However, I found that on my PC1, after disconnecting from remote Linux server, the ssh always shows the following error message at the last line:
close - IO is still pending on closed socket. read:1, write:0, io:0000023DE45AF900
But on my PC2, it never does that after disconnecting from the same remote Linux server.
I also tried to connect to other company remote Linux servers from the two PCs, but the results were the same as above.
So it seems that the problem is not on the remote side, but on the local side.
Besides, I tried different ssh toolchain versions.
The Windows 10 built-in ssh client version is
OpenSSH_for_Windows_8.1p1, LibreSSL 3.0.2
.I downloaded the latest ssh toolchain version
OpenSSH_for_Windows_8.6p1, LibreSSL 3.3.3
, unzip it and set up PATH env variable, and tried again on my PC1.Both versions shows the same error message after disconnection.
I would like to know how to fix this issue.
The text was updated successfully, but these errors were encountered: