In samplecode/db-proxy/db-server/src/server/mod.rs: There are two `db.read()` in fn `fn db_get()`, which may cause deadlock when interleaved by a `db.write()` (e.g. in `db_put()` or `db_delete()`) from another thread.
The fix is to remove the redundant `db.read()`. You can view, comment on, or merge this pull request online at: https://github.com/apache/incubator-teaclave-sgx-sdk/pull/269 -- Commit Summary -- * samplecode: fix possible deadlock in db-server -- File Changes -- M samplecode/db-proxy/db-server/src/server/mod.rs (1) -- Patch Links -- https://github.com/apache/incubator-teaclave-sgx-sdk/pull/269.patch https://github.com/apache/incubator-teaclave-sgx-sdk/pull/269.diff -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/apache/incubator-teaclave-sgx-sdk/pull/269
