Skip to content

Commit

Permalink
add todo
Browse files Browse the repository at this point in the history
  • Loading branch information
robamu committed Jul 28, 2022
1 parent 654e4e2 commit a9a3d08
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tmtccmd/com_if/tcp.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,9 @@ def __receive_tm_packets(self):
"Overwriting old packets.."
)
self.__tm_queue.pop()
# TODO: If segments are received but the receiver is unable to parse packets
# properly, it might make sense to have a timeout which then also
# logs that there might be an issue reading packets
self.__tm_queue.appendleft(bytes(bytes_recvd))
except ConnectionResetError:
self.__close_tcp_socket()
Expand Down

0 comments on commit a9a3d08

Please sign in to comment.