ettoreleandrotognoli / python-ami

Python AMI Client
BSD 3-Clause "New" or "Revised" License
107 stars 66 forks source link

Fixed: Sometimes the data readed in ''self.socket.recv(self.buffer_si… #2

Closed psaavedra closed 8 years ago

psaavedra commented 8 years ago

Fixed: Sometimes the data readed in ''self.socket.recv(self.buffer_size)'' read more tahn one message at the same time.

The problem is in the listen() function. Sometimes the data readed in ''self.socket.recv(self.buffer_size)'' read more tahn one message at the same time. For example:

data: >>>>>>>>>>>>>> Response: Success ActionID: 0 Message: Authentication accepted

Event: FullyBooted Privilege: system,all Status: Fully Booted

data: <<<<<<<<<<<<<<

ettoreleandrotognoli commented 8 years ago

I wrote a correction, thanks!