1
0
mirror of https://github.com/moparisthebest/spdylay synced 2024-12-22 07:38:52 -05:00

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

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.