mirror of
https://github.com/nghttp2/nghttp2.git
synced 2025-12-07 02:28:53 +08:00
Move frame_type parameter in front of stream_id
This commit moves frame_type parameter of nghttp2_data_soruce_read_length_callback in front of stream_id parameter. The motivation is that other callback is generally put frame related parameters first. To make it consistent, we move frame_type, which is frame ralted parameter, to the left.
This commit is contained in:
@@ -239,16 +239,16 @@ static ssize_t select_padding_callback(nghttp2_session *session,
|
||||
}
|
||||
|
||||
static ssize_t too_large_data_source_length_callback
|
||||
(nghttp2_session *session, int32_t stream_id,
|
||||
(nghttp2_session *session, uint8_t frame_type, int32_t stream_id,
|
||||
int32_t session_remote_window_size, int32_t stream_remote_window_size,
|
||||
uint32_t remote_max_frame_size, uint8_t frame_type, void *user_data) {
|
||||
uint32_t remote_max_frame_size, void *user_data) {
|
||||
return NGHTTP2_MAX_FRAME_SIZE_MAX + 1;
|
||||
}
|
||||
|
||||
static ssize_t smallest_length_data_source_length_callback
|
||||
(nghttp2_session *session, int32_t stream_id,
|
||||
(nghttp2_session *session, uint8_t frame_type, int32_t stream_id,
|
||||
int32_t session_remote_window_size, int32_t stream_remote_window_size,
|
||||
uint32_t remote_max_frame_size, uint8_t frame_type, void *user_data) {
|
||||
uint32_t remote_max_frame_size, void *user_data) {
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user