fix grammar and english in SSL.py and ssl.rst
diff --git a/OpenSSL/SSL.py b/OpenSSL/SSL.py
index 4c221d0..8c87c34 100644
--- a/OpenSSL/SSL.py
+++ b/OpenSSL/SSL.py
@@ -1889,7 +1889,7 @@
:returns: The TLS version of the current connection, for example
the value for TLS 1.2 would be ``TLSv1.2``or ``Unknown``
- for connections that were not successfully.
+ for connections that were not successfully established.
:rtype: :py:class:`unicode`
"""
version = _ffi.string(_lib.SSL_get_version(self._ssl))
diff --git a/OpenSSL/test/test_ssl.py b/OpenSSL/test/test_ssl.py
index e586537..ead2503 100644
--- a/OpenSSL/test/test_ssl.py
+++ b/OpenSSL/test/test_ssl.py
@@ -142,7 +142,7 @@
# Most of our callers want non-blocking sockets, make it easy for them.
server.setblocking(False)
client.setblocking(False)
-
+ port.close()
return (server, client)
diff --git a/doc/api/ssl.rst b/doc/api/ssl.rst
index bea6e25..89ae6a1 100644
--- a/doc/api/ssl.rst
+++ b/doc/api/ssl.rst
@@ -607,9 +607,10 @@
.. py:method:: Connection.get_protocol_version_name()
- Retrieve the version of the SSL or TLS protocol used by the Connection.
- For example, it will return ``TLSv1`` for connections made over TLS version
- 1, or ``Unknown`` for connections that were not successfully established.
+ Retrieve the version of the SSL or TLS protocol used by the Connection as
+ a unicode string. For example, it will return ``TLSv1`` for connections
+ made over TLS version 1, or ``Unknown`` for connections that were not
+ successfully established.
.. py:method:: Connection.get_client_ca_list()