- command, connection_id = q.get(timeout=0.001)
- if connection_id in potential_flooders:
- if int(time.time() * 100) == potential_flooders[connection_id]:
- continue
- potential_flooders[connection_id] = int(time.time() * 100)
- self.handle_input(connection_id, command)
+ connection_id, command = q.get(timeout=0.001)
+
+ # FIXME: this would catch the init command flood
+ #if connection_id in potential_flooders:
+ # if int(time.time() * 100) == potential_flooders[connection_id]:
+ # continue
+ #potential_flooders[connection_id] = int(time.time() * 100)
+
+ self.handle_input(command, connection_id)