From 4b04742cd8207258415297f7f6248a85925cce1e Mon Sep 17 00:00:00 2001 From: Waldemar Quevedo Date: Wed, 6 Dec 2017 05:11:28 -0800 Subject: [PATCH] Bump version --- nats/aio/client.py | 10 +++++++++- setup.py | 3 ++- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/nats/aio/client.py b/nats/aio/client.py index c051b360..b838f42c 100644 --- a/nats/aio/client.py +++ b/nats/aio/client.py @@ -10,7 +10,7 @@ from nats.aio.utils import new_inbox from nats.protocol.parser import * -__version__ = '0.6.3' +__version__ = '0.6.4' __lang__ = 'python3' PROTOCOL = 1 @@ -584,6 +584,14 @@ def _select_next_server(self): loop=self._loop, limit=DEFAULT_BUFFER_SIZE) srv = s + + # We keep a reference to the initial transport we used when + # establishing the connection in case we later upgrade to TLS + # after getting the first INFO message. This is in order to + # prevent the GC closing the socket after we send CONNECT + # and replace the transport. + # + # See https://github.com/nats-io/asyncio-nats/issues/43 self._bare_io_reader = self._io_reader = r self._bare_io_writer = self._io_writer = w break diff --git a/setup.py b/setup.py index 1d5c743e..b4823f0b 100644 --- a/setup.py +++ b/setup.py @@ -11,7 +11,8 @@ 'Programming Language :: Python', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.4', - 'Programming Language :: Python :: 3.5' + 'Programming Language :: Python :: 3.5', + 'Programming Language :: Python :: 3.6' ], url='https://github.com/nats-io/asyncio-nats', author='Waldemar Quevedo',