Nguyen Viet Anh

Results 3 issues of Nguyen Viet Anh

- Sometime we need to encrypt response and request from client to server to ensure security

enhancement
pr
needs rebase

I'm not sure why we need to re turn an 'invalid' error when stream end. This cause the error that cb will be called 2 times