SSL session closure should be treated like EOF
Merge branch 'master' into andrew-fork