mirror of
https://github.com/nghttp2/nghttp2.git
synced 2025-12-08 11:08:52 +08:00
Exposed spdylay_session_fail_session() to the public API.
This commit is contained in:
@@ -63,13 +63,8 @@ static int spdylay_is_fatal(int error)
|
||||
return error < SPDYLAY_ERR_FATAL;
|
||||
}
|
||||
|
||||
/*
|
||||
* This function should be called when the session wants to drop
|
||||
* connection after sending GOAWAY. These cases are called as the
|
||||
* session error. For example, when it receives bad zlib data.
|
||||
*/
|
||||
static int spdylay_session_fail_session(spdylay_session *session,
|
||||
uint32_t status_code)
|
||||
int spdylay_session_fail_session(spdylay_session *session,
|
||||
uint32_t status_code)
|
||||
{
|
||||
session->goaway_flags |= SPDYLAY_GOAWAY_FAIL_ON_SEND;
|
||||
return spdylay_submit_goaway(session, status_code);
|
||||
|
||||
Reference in New Issue
Block a user