Skip to content

[Bug] Ungraceful closing of EUD connection #191

@maxlandon

Description

@maxlandon

I have observed several instances of the following exception being thrown in my OTS logs recently:

[2025-11-27 11:49:04,442] - eud_handler[1031] - client_controller - on_channel_close - 134 - ERROR - RabbitMQ channel closed for DOG, shut it down
[2025-11-27 11:49:04,443] - eud_handler[1031] - client_controller - run - 271 - WARNING - No Data Closing connection to 10.0.0.16
[2025-11-27 11:49:04,449] - eud_handler[1031] - client_controller - send_disconnect_cot - 582 - INFO - 10.0.0.16 disconnected
[2025-11-27 11:49:04,449] - eud_handler[1031] - client_controller - run - 304 - WARNING - OSError, stopping
[2025-11-27 11:49:04,449] - eud_handler[1031] - client_controller - run - 305 - ERROR - [Errno 9] Bad file descriptor
[2025-11-27 11:49:04,453] - eud_handler[1031] - client_controller - run - 306 - ERROR - Traceback (most recent call last):
  File "/home/ubuntu/code/OpenTAKServer/opentakserver/eud_handler/client_controller.py", line 272, in run
    self.close_connection()
  File "/home/ubuntu/code/OpenTAKServer/opentakserver/eud_handler/client_controller.py", line 325, in close_connection
    self.sock.shutdown(socket.SHUT_RDWR)
  File "/usr/lib/python3.12/ssl.py", line 1291, in shutdown
    super().shutdown(how)
OSError: [Errno 9] Bad file descriptor

Note that it does not seem to have affected the functionality of the server or the clients.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions