rationale to clear queue during tcp_client_endpoint restart() #693
Unanswered
joeyoravec
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
What is the rationale for tcp_client_endpoint to clear the queue during
restart()
? See:vsomeip/implementation/endpoints/src/tcp_client_endpoint_impl.cpp
Lines 102 to 128 in cf49723
Let's say the the train is loaded with several passengers and the TCP socket gets broken-then-reopened. This tends to happen around startup or suspend-to-ram while the system is unstable. In this case:
REMOTE_ERROR
more atomic; might guarantee that no passenger goes out after a client was informed of failure? it would be weird if an event transmitted hours laterIt seems like an architectural tradeoff between "riding out" brief interruptions in network connectivity and returning error codes more often to clients. Why was this selected?
Beta Was this translation helpful? Give feedback.
All reactions