kontron / python-ipmi

A pure python IPMI library
GNU Lesser General Public License v2.1
187 stars 74 forks source link

Fix race condition in RMCP transaction #86

Closed patrislav1 closed 3 years ago

patrislav1 commented 3 years ago

_send_and_receive() sends a UDP datagram and waits for the answer. It is called by two threads at the same time (see establish_session()). This patch introduces a lock to fix that race condition.

mwalle commented 3 years ago

thanks!

could you add a SoB tag to your patch?

patrislav1 commented 3 years ago

could you add a SoB tag to your patch?

Done :)

hthiery commented 3 years ago

Thank you!