Code cleanup
This commit is contained in:
parent
a3ff4cb50b
commit
5dd6d86d66
|
@ -96,7 +96,7 @@ int nghttp2_adjust_local_window_size(int32_t *local_window_size_ptr,
|
|||
int32_t delta)
|
||||
{
|
||||
if(delta > 0) {
|
||||
int32_t new_recv_window_size = *recv_window_size_ptr - delta;
|
||||
int32_t new_recv_window_size = *recv_window_size_ptr - delta;
|
||||
if(new_recv_window_size < 0) {
|
||||
if(*local_window_size_ptr >
|
||||
NGHTTP2_MAX_WINDOW_SIZE + new_recv_window_size) {
|
||||
|
|
|
@ -88,7 +88,7 @@ static int update_initial_window_size
|
|||
new_window_size > NGHTTP2_MAX_WINDOW_SIZE) {
|
||||
return -1;
|
||||
}
|
||||
*window_size_ptr += new_initial_window_size - old_initial_window_size;
|
||||
*window_size_ptr = new_window_size;
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue