fix some keep-alived bug for ssl and sock
fix ssl open and read return error bug