[OE-core] [BUG] Openssh not closing connections on service stop

Diego diego.ml at zoho.com
Wed Dec 3 10:21:27 UTC 2014


In data martedì 2 dicembre 2014 16:13:09, Saul Wold ha scritto:
> <snip>
>
> > Isn't service termination supposed to stop all related connections at the
> > same time? Can anybody else reproduce (or not) this issue?
> 
> It may actually be designed to work this way, since the daemon spawns a
> process for each login the daemon can be restarted on a headless or
> server type machine and not loose the connection, based on googling, I
> could not find this outright on the Openssh.com site.
> 
> It appears that the dropbear sshd also has the behavior.
> 
> So I would not call this a bug.
> 
> Sau!
> 

Hi Saul,

I had a bit of a discussion with bluelightning and peteru in #oe. We came to 
the conclusion that having ssh connections still up after service stop is 
considered to be the correct behaviour.

On the other hand, not closing ssh connections on shutdown is generally 
considered a bug by distros, although it is considered a minor one. This 
generally requires connections being killed before network is brought down, 
which might be complicated with sysvinit. These are the links from other 
distros:
https://bugzilla.redhat.com/show_bug.cgi?id=626477
https://bugs.gentoo.org/show_bug.cgi?id=259183
https://bugs.archlinux.org/task/31250

Long story short: it would be nice to gracefully close ssh connections on 
shutdown before terminating network connections, but it's a minor issue, and 
probably not worth the effort of fixing.

Bests,
Diego




More information about the Openembedded-core mailing list