Rename nghttp2_session_request_allowed as nghttp2_session_check_request_allowed
This commit is contained in:
parent
6ff9c4d8f9
commit
be0d0e2995
|
@ -105,7 +105,7 @@ APIDOCS= \
|
|||
nghttp2_session_mem_recv.rst \
|
||||
nghttp2_session_mem_send.rst \
|
||||
nghttp2_session_recv.rst \
|
||||
nghttp2_session_request_allowed.rst \
|
||||
nghttp2_session_check_request_allowed.rst \
|
||||
nghttp2_session_resume_data.rst \
|
||||
nghttp2_session_send.rst \
|
||||
nghttp2_session_server_new.rst \
|
||||
|
|
|
@ -3494,7 +3494,8 @@ NGHTTP2_EXTERN int32_t
|
|||
* may return error. Or, request is failed to sent, and
|
||||
* :type:`nghttp2_on_stream_close_callback` is called.
|
||||
*/
|
||||
NGHTTP2_EXTERN int nghttp2_session_request_allowed(nghttp2_session *session);
|
||||
NGHTTP2_EXTERN int
|
||||
nghttp2_session_check_request_allowed(nghttp2_session *session);
|
||||
|
||||
/**
|
||||
* @function
|
||||
|
|
|
@ -1322,7 +1322,7 @@ static int session_predicate_for_stream_send(nghttp2_session *session,
|
|||
return 0;
|
||||
}
|
||||
|
||||
int nghttp2_session_request_allowed(nghttp2_session *session) {
|
||||
int nghttp2_session_check_request_allowed(nghttp2_session *session) {
|
||||
return !session->server && session->next_stream_id <= INT32_MAX &&
|
||||
(session->goaway_flags &
|
||||
(NGHTTP2_GOAWAY_TERM_ON_SEND | NGHTTP2_GOAWAY_RECV)) == 0;
|
||||
|
|
|
@ -210,7 +210,7 @@ void Http2Session::on_connect() {
|
|||
}
|
||||
|
||||
int Http2Session::submit_request(RequestStat *req_stat) {
|
||||
if (nghttp2_session_request_allowed(session_) == 0) {
|
||||
if (nghttp2_session_check_request_allowed(session_) == 0) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue