diff options
author | lovetox <philipp@hoerist.com> | 2020-03-28 20:13:01 +0300 |
---|---|---|
committer | lovetox <philipp@hoerist.com> | 2020-03-28 20:13:01 +0300 |
commit | c6b3a7a5669d4b9de934f1376806793777fb55fe (patch) | |
tree | 31135726518bf6e92cea2cff6c8691fce879f53d | |
parent | 5e6bb0f975db3f186f5606b2f7cdb7e2727c5d2d (diff) |
TCP: Add comment
-rw-r--r-- | nbxmpp/tcp.py | 4 |
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): |