Add remarks about callbacks and spdylay_session_{recv,send}

This commit is contained in:
Tatsuhiro Tsujikawa 2012-12-23 01:24:56 +09:00
parent be5066c450
commit 58f92d48c9
1 changed files with 10 additions and 0 deletions

View File

@ -7,3 +7,13 @@ Includes
To use the public APIs, include ``spdylay/spdylay.h``::
#include <spdylay/spdylay.h>
Remarks
-------
Do not call `spdylay_session_send`, `spdylay_session_recv` or
`spdylay_session_mem_recv` from the spdylay callback functions
directly or indirectly. It will lead to the crash. You can submit
requests or frames in the callbacks then call `spdylay_session_send`,
`spdylay_session_recv` or `spdylay_session_mem_recv` outside of the
callbacks.