jpellerin  committed 810c7c6

Fixed bug in Frame._getline that cause nonblocking get to stick in infinite loop when talking to activemq

  • Participants
  • Parent commits 9f69e92
  • Tags stompy-0.1.7

Comments (0)

Files changed (1)

File stompy/

                     partial = self.sock.recv(1)
                 except socket.error, exc:
                     if exc.errno == EAGAIN:
-                        if not buffer:
+                        if not buffer or buffer == '\n':
                             return None
                 buffer += partial