Bug 3024 - Socket not removed after closing the session
Summary: Socket not removed after closing the session
Status: NEW
Alias: None
Product: Portable OpenSSH
Classification: Unclassified
Component: ssh (show other bugs)
Version: 7.9p1
Hardware: Other Linux
: P5 enhancement
Assignee: Assigned to nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-06-27 02:34 AEST by bugzilla
Modified: 2019-06-27 02:34 AEST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description bugzilla 2019-06-27 02:34:47 AEST
Description of problem:
When using the socked forward via -L then after closing the session the socket created on the locale side are not removed.

Version-Release number of selected component (if applicable):
openssh-clients-7.9p1-5.fc29.x86_64


How reproducible:
Every time


Steps to Reproduce:
1. ssh foo -L /tmp/foo:/var/lib/mysql/mysql.sock
2. close the connection
3. ssh foo -L /tmp/foo:/var/lib/mysql/mysql.sock

Actual results:
The 3rd call will fail with:
unix_listener: cannot bind to path /tmp/foo: Address already in use
Could not request local forwarding.

Expected results:
Working forward.

Additional info:
ssh foo -L /tmp/foo:/var/lib/mysql/mysql.sock
rm /tmp/foo
ssh foo -L /tmp/foo:/var/lib/mysql/mysql.sock
Will work, so nothing will use the socket.

See the Red Hat Bugzilla for the whole communication.