Aligns buffer final - dedicated / release connections

Hi Christian,

Here the final PR including your changes and the merge with "aligns buffer".

I add a commit from my dedicated connection branch to release connections. Because they still opened after closing the stream !