[axtls-general] reading and writing from different threads
Brought to you by:
cameronrich
From: Arunkumar D. <dar...@cl...> - 2012-05-23 10:57:28
|
Hi All, We are using axTLS in our embedded project and need to perform ssl_write() and ssl_read() from different threads. But Valgrind tool reported a race condition on the ssl->flag and ssl->bm_data fields. On further investigation it looks like, the code was not written to support performing read and write operations simultaneously. Can anyone confirm this? How much of a priority is this to other developers? We are planning to perform crude locking so that only read of write happens at a time, although I think it should be possible to do it without a lock if the fields used for write and read operations are separated. Is anyone interested in the changes? thanks, arun |