Skip to content

"Too many open files" error when using ssh tunnel for SOCKS proxy #2426

@Peperud

Description

@Peperud

Prerequisites

  • Write a descriptive title.
  • Make sure you are able to repro it on the latest version
  • Search the existing issues.

Steps to reproduce

I use an ssh connection to proxy some calls through a remote. Just with one or two browser pages (apnews.com for example) I start getting accept: Too many open files messages in the ssh console. Typically this would indicate a remote system limit and I spent a lot of time chasing that. Not so in this case. While the issue is happening, the remote system reports FD's in use far less than the set limits.
At first I used Windows's built-in ssh client and it had this problem.
Then I tried the one that comes with Git for Windows and under similar loads I was not able to make the issue show up again.
Then I got the latest available release (v.10) from this project and the problem is back. Hence this bug report.

Expected behavior

I'd expect the ssh client to handle such relatively light use without a problem by default. And provide configuration for heavier use.

Actual behavior

The ssh client is experiencing problems under what I'd consider to be a light load.

Error details

Environment data

Name                           Value
----                           -----
PSVersion                      7.5.4
PSEdition                      Core
GitCommitId                    7.5.4
OS                             Microsoft Windows 10.0.26200
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Version

10.0.0.0

Visuals

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions