summaryrefslogtreecommitdiff
path: root/src/ipcpd/shim-udp/shim_udp_config.h.in
diff options
context:
space:
mode:
authordimitri staessens <dimitri.staessens@intec.ugent.be>2016-05-20 00:34:36 +0200
committerdimitri staessens <dimitri.staessens@intec.ugent.be>2016-05-20 00:34:36 +0200
commite0f5fbea688a6e9b19c79d16b41076fc7c508df6 (patch)
tree4082496f57c551f002f842bd6f9bb75d6533974e /src/ipcpd/shim-udp/shim_udp_config.h.in
parentc3485a0b159469c0899c76de230f2d36d371909e (diff)
downloadouroboros-e0f5fbea688a6e9b19c79d16b41076fc7c508df6.tar.gz
ouroboros-e0f5fbea688a6e9b19c79d16b41076fc7c508df6.zip
ipcpd: shim-ipcp: fixed race conditions
There were two race conditions. The first was where client received the response message before the client UDP port was connected to the server UDP port and the first message of the client was sent to the LISTEN port instead of the server application port. This was solved by reordering the operations so the response is sent after the port is correctly connected. The second race condition is that the FD is not added to the set in time at the server side before the first SDU arrives. This was solved by adding a variable proteceted by a mutex.
Diffstat (limited to 'src/ipcpd/shim-udp/shim_udp_config.h.in')
0 files changed, 0 insertions, 0 deletions