Skip to content

Commit 8eae9c6

Browse files
committed
Send header table size
1 parent 041049b commit 8eae9c6

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

swoole_http2_client_coro.cc

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -815,21 +815,21 @@ bool http2_client::send_setting()
815815

816816
char *p = frame + SW_HTTP2_FRAME_HEADER_SIZE;
817817
/**
818-
* MAX_CONCURRENT_STREAMS
818+
* HEADER_TABLE_SIZE
819819
*/
820-
id = htons(SW_HTTP2_SETTINGS_MAX_CONCURRENT_STREAMS);
820+
id = htons(SW_HTTP2_SETTING_HEADER_TABLE_SIZE);
821821
memcpy(p, &id, sizeof(id));
822822
p += 2;
823-
value = htonl(settings->max_concurrent_streams);
823+
value = htonl(settings->header_table_size);
824824
memcpy(p, &value, sizeof(value));
825825
p += 4;
826826
/**
827-
* MAX_FRAME_SIZE
827+
* MAX_CONCURRENT_STREAMS
828828
*/
829-
id = htons(SW_HTTP2_SETTINGS_MAX_FRAME_SIZE);
829+
id = htons(SW_HTTP2_SETTINGS_MAX_CONCURRENT_STREAMS);
830830
memcpy(p, &id, sizeof(id));
831831
p += 2;
832-
value = htonl(settings->max_frame_size);
832+
value = htonl(settings->max_concurrent_streams);
833833
memcpy(p, &value, sizeof(value));
834834
p += 4;
835835
/**

0 commit comments

Comments
 (0)