Unix Domain Socket #1404
-
Hello, I am bit analyzing Iceoryx implementation for IPC Communication based on UDS. Following are my observation:
I have following questions based on above understanding. Request you to clarify the same.
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Yes it is in theory possible. But there is a problem when you send out a message and want to receive an answer to that message on the same unix domain socket. How long do you have to wait for the corresponding process to read the message? If you wait not long enough it is possible that you read your own message again when you call To your observation:
This is a very good question. At the moment I would refrain from that use case but a quick look at the source code gives me a good feeling that this should be thread-safe but to be honest, we did not yet consider this use case. I will create an issue for that to investigate this further, write maybe some test so that we really ensure that this valid use case is working. |
Beta Was this translation helpful? Give feedback.
-
I created the issue #1405 |
Beta Was this translation helpful? Give feedback.
@hemalbavishi
I created the issue #1405