()
| 483 | room_socket = self.get_or_create_room_socket(room, receiver_rank_port) |
| 484 | |
| 485 | def decode_thread(): |
| 486 | while not stop_event.is_set(): |
| 487 | try: |
| 488 | (bootstrap_room, status) = room_socket.recv_multipart() |
| 489 | except zmq.Again: |
| 490 | continue |
| 491 | status = int(status.decode("ascii")) |
| 492 | bootstrap_room = int(bootstrap_room.decode("ascii")) |
| 493 | self.request_status[bootstrap_room] = status |
| 494 | |
| 495 | decode_worker = threading.Thread(target=decode_thread) |
| 496 | decode_worker.start() |