1
0
mirror of https://github.com/moparisthebest/spdylay synced 2024-08-13 17:03:54 -04:00

Mentioned on_ctrl_not_send_callback in spdylay_session_send doc.

This commit is contained in:
Tatsuhiro Tsujikawa 2012-03-08 22:02:48 +09:00
parent fcde841cab
commit e2092966ef

View File

@ -481,13 +481,16 @@ void spdylay_session_del(spdylay_session *session);
* *
* 1. Get the next frame to send from outbound queue. * 1. Get the next frame to send from outbound queue.
* 2. Prepare transmission of the frame. * 2. Prepare transmission of the frame.
* 3. If the frame is SYN_STREAM, the stream is opened here. * 3. If the control frame cannot be sent because some preconditions
* 4. before_ctrl_send_callback is invoked. * are not met (e.g., SYN_STREAM cannot be sent after GOAWAY),
* 5. send_callback is invoked one or more times (while the frame is * on_ctrl_not_send_callback is invoked. Skip following steps.
* 4. If the frame is SYN_STREAM, the stream is opened here.
* 5. before_ctrl_send_callback is invoked.
* 6. send_callback is invoked one or more times (while the frame is
* completely sent). * completely sent).
* 6. If the frame is a control frame, on_ctrl_send_callback is invoked. * 7. If the frame is a control frame, on_ctrl_send_callback is invoked.
* 7. If the frame is a DATA frame, on_data_send_callback is invoked. * 8. If the frame is a DATA frame, on_data_send_callback is invoked.
* 8. If the transmission of the frame triggers closure of the stream, * 9. If the transmission of the frame triggers closure of the stream,
* the stream is closed and on_stream_close_callback is invoked. * the stream is closed and on_stream_close_callback is invoked.
* *
* This function returns 0 if it succeeds, or one of the following * This function returns 0 if it succeeds, or one of the following