diff --git a/pyxmpp2/transport.py b/pyxmpp2/transport.py
index <HASH>..<HASH> 100644
--- a/pyxmpp2/transport.py
+++ b/pyxmpp2/transport.py
@@ -690,6 +690,9 @@ class TCPTransport(XMPPTransport, IOHandler):
                             continue
                         elif err.args[0] == errno.EWOULDBLOCK:
                             break
+                        elif err.args[0] == errno.ECONNRESET:
+                            logger.warning("Connection reset by peer")
+                            data = None
                         else:
                             raise
                     self._feed_reader(data)
@@ -703,6 +706,9 @@ class TCPTransport(XMPPTransport, IOHandler):
                             continue
                         elif err.args[0] == errno.EWOULDBLOCK:
                             break
+                        elif err.args[0] == errno.ECONNRESET:
+                            logger.warning("Connection reset by peer")
+                            data = None
                         else:
                             raise
                     self._feed_reader(data)
Handle ECONNRESET error on read

Log it (ERROR priority) and treat like EOF