Welcome to mirror list, hosted at ThFree Co, Russian Federation.

dev.gajim.org/gajim/python-nbxmpp.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlovetox <philipp@hoerist.com>2020-03-28 20:13:01 +0300
committerlovetox <philipp@hoerist.com>2020-03-28 20:13:01 +0300
commitc6b3a7a5669d4b9de934f1376806793777fb55fe (patch)
tree31135726518bf6e92cea2cff6c8691fce879f53d
parent5e6bb0f975db3f186f5606b2f7cdb7e2727c5d2d (diff)
TCP: Add comment
-rw-r--r--nbxmpp/tcp.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/nbxmpp/tcp.py b/nbxmpp/tcp.py
index be00732..637effe 100644
--- a/nbxmpp/tcp.py
+++ b/nbxmpp/tcp.py
@@ -241,6 +241,10 @@ class TCPConnection(Connection):
except Exception:
self._log.exception('Error while executing data-received:')
+ # Call next async read only after the received data is processed
+ # otherwise this can lead to problems if we call
+ # start_tls_negotiation() while we have a pending read which is
+ # the case for START TLS because its triggered by <proceed>
self._read_async()
def _write_stanzas(self):