From d256194a0cdece9bb6f95d4d45d39455de99dfb4 Mon Sep 17 00:00:00 2001 From: Andy Green Date: Tue, 20 Oct 2015 12:24:00 +0800 Subject: [PATCH] document context create cannot execute in parallel Reported by Ash 20001 Signed-off-by: Andy Green --- README.coding.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.coding.md b/README.coding.md index a8a9f9de9..c221347fd 100644 --- a/README.coding.md +++ b/README.coding.md @@ -44,6 +44,12 @@ websocket ones, you can combine them together with the websocket ones in one poll loop, see "External Polling Loop support" below, and still do it all in one thread / process context. +If you insist on trying to use it from multiple threads, take special care if +you might simultaneously create more than one context from different threads. + +SSL_library_init() is called from the context create api and it also is not +reentrant. So at least create the contexts sequentially. + Only send data when socket writeable ------------------------------------