Skip to content

Attempt to fix SFTP test server hang during shutdown#317

Merged
jelmer merged 1 commit intobreezy-team:3.3from
jelmer:3.3-maybe-fix-sftp-server-hang
Nov 12, 2025
Merged

Attempt to fix SFTP test server hang during shutdown#317
jelmer merged 1 commit intobreezy-team:3.3from
jelmer:3.3-maybe-fix-sftp-server-hang

Conversation

@jelmer
Copy link
Member

@jelmer jelmer commented Nov 12, 2025

The FakeChannel class in TestingSFTPWithoutSSHConnectionHandler had an empty close() method, which prevented the underlying socket from being properly closed when the SFTP server shut down. This caused a race condition where the server thread's blocking recv() call would not be interrupted, leading to indefinite hangs during test teardown.

Debian #1106107

The FakeChannel class in TestingSFTPWithoutSSHConnectionHandler had an
empty close() method, which prevented the underlying socket from being
properly closed when the SFTP server shut down. This caused a race
condition where the server thread's blocking recv() call would not be
interrupted, leading to indefinite hangs during test teardown.

Debian #1106107
@jelmer jelmer enabled auto-merge November 12, 2025 14:52
@jelmer jelmer merged commit 9f0c2d9 into breezy-team:3.3 Nov 12, 2025
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant