Lines Matching defs:stream_id
68 int32_t stream_id;
265 int32_t stream_id, const uint8_t *data,
270 (void)stream_id;
279 uint8_t flags, int32_t stream_id,
285 (void)stream_id;
303 nghttp2_session *session, uint8_t frame_type, int32_t stream_id,
308 (void)stream_id;
318 nghttp2_session *session, uint8_t frame_type, int32_t stream_id,
323 (void)stream_id;
333 nghttp2_session *session, int32_t stream_id, uint8_t *buf, size_t len,
338 (void)stream_id;
355 nghttp2_session *session, int32_t stream_id, uint8_t *buf, size_t len,
358 (void)stream_id;
369 int32_t stream_id, uint8_t *buf,
374 (void)stream_id;
385 nghttp2_session *session, int32_t stream_id, uint8_t *buf, size_t len,
388 (void)stream_id;
399 nghttp2_session *session, int32_t stream_id, uint8_t *buf, size_t len,
404 (void)stream_id;
559 int32_t stream_id, uint8_t *buf,
564 (void)stream_id;
574 static int on_stream_close_callback(nghttp2_session *session, int32_t stream_id,
578 (void)stream_id;
588 int32_t stream_id,
591 on_stream_close_callback(session, stream_id, error_code, user_data);
925 hd.stream_id = 1;
985 CU_ASSERT(1 == item->frame.window_update.hd.stream_id);
1001 CU_ASSERT(0 == item->frame.window_update.hd.stream_id);
1008 hd.stream_id = 0;
1030 hd.stream_id = 1;
1115 hd.stream_id = 1;
1173 hd.stream_id = 1;
1487 CU_ASSERT(1 == stream->dep_prev->stream_id);
1535 /* Check dep_stream_id == stream_id */
1680 rv = nghttp2_submit_response(session, hd->stream_id, resnv, ARRLEN(resnv),
2025 CU_ASSERT(1 == item->frame.hd.stream_id);
2057 CU_ASSERT(2 == item->frame.hd.stream_id);
2376 CU_ASSERT(1000000007 == ud.recv_frame_hd.stream_id);
2462 CU_ASSERT(0 == ud.recv_frame_hd.stream_id);
2671 CU_ASSERT(0 == ud.recv_frame_hd.stream_id);
2702 frame.hd.stream_id = 1;
2791 int32_t stream_id;
2830 CU_ASSERT(0 == ud.recv_frame_hd.stream_id);
2859 CU_ASSERT(0 == ud.recv_frame_hd.stream_id);
2949 stream_id = (int32_t)(i * 2 + 1);
2951 &frame, stream_id, (uint8_t *)field_value, sizeof(field_value) - 1);
3219 int32_t stream_id = 1;
3237 stream_id, NGHTTP2_HCAT_REQUEST, &pri_spec, NULL, 0);
3244 stream = nghttp2_session_get_stream(session, stream_id);
3475 frame.hd.stream_id = 3;
3487 frame.hd.stream_id = 2;
3544 frame.hd.stream_id = 4;
3562 frame.hd.stream_id = 6;
3605 frame.hd.stream_id = 2;
3615 frame.hd.stream_id = 100;
3619 stream = nghttp2_session_get_stream_raw(session, frame.hd.stream_id);
3627 /* Check dep_stream_id == stream_id case */
3644 /* Check again dep_stream_id == stream_id, and stream_id is idle */
3748 session, stream1->stream_id));
3750 session, stream2->stream_id));
3930 hd.stream_id = 1;
4063 CU_ASSERT(6 == item->frame.hd.stream_id);
4068 frame.hd.stream_id = 3;
4081 CU_ASSERT(0 == item->frame.hd.stream_id);
4092 frame.hd.stream_id = 1;
4474 frame.hd.stream_id = 1;
4482 frame.hd.stream_id = 3;
5079 CU_ASSERT(3 == stream->dep_prev->stream_id);
5145 CU_ASSERT(7 == stream->dep_prev->stream_id);
5149 CU_ASSERT(1 == stream->dep_prev->stream_id);
5153 CU_ASSERT(3 == stream->dep_prev->stream_id);
5157 CU_ASSERT(3 == stream->dep_prev->stream_id);
5177 CU_ASSERT(7 == stream->dep_prev->stream_id);
5181 CU_ASSERT(1 == stream->dep_prev->stream_id);
5185 CU_ASSERT(7 == stream->dep_prev->stream_id);
5189 CU_ASSERT(3 == stream->dep_prev->stream_id);
5216 CU_ASSERT(101 == stream->dep_prev->stream_id);
5388 nghttp2_session *session, int32_t stream_id, uint8_t *buf, size_t len,
5391 (void)stream_id;
5414 frame->hd.stream_id, &data_prd);
5922 /* Sending nghttp2_submit_headers() with stream_id == 1 and server
6637 int32_t stream_id;
6671 stream_id = (int32_t)nghttp2_get_uint32(acc.buf + 5);
6673 CU_ASSERT(3 == stream_id);
6734 /* submitting empty origin with stream_id == 0 is error */
6740 /* submitting non-empty origin with stream_id != 0 is error */
6809 CU_ASSERT(0 == frame.hd.stream_id);
6860 int32_t stream_id;
6869 stream_id =
6872 CU_ASSERT(1 == stream_id);
6878 rv = nghttp2_submit_priority_update(session, NGHTTP2_FLAG_NONE, stream_id,
6896 CU_ASSERT(0 == frame.hd.stream_id);
6898 CU_ASSERT(stream_id == priority_update.stream_id);
6920 stream_id =
6923 CU_ASSERT(1 == stream_id);
6929 rv = nghttp2_submit_priority_update(session, NGHTTP2_FLAG_NONE, stream_id,
6945 CU_ASSERT(0 == frame.hd.stream_id);
6947 CU_ASSERT(stream_id == priority_update.stream_id);
6959 int32_t stream_id;
7005 CU_ASSERT(1 == item->frame.hd.stream_id);
7023 CU_ASSERT(2 == item->frame.hd.stream_id);
7030 stream_id =
7033 CU_ASSERT(stream_id > 0);
7041 rv = nghttp2_submit_rst_stream(session, NGHTTP2_FLAG_NONE, stream_id,
7098 CU_ASSERT(1 == stream->dep_prev->stream_id);
7106 CU_ASSERT(1000000007 == stream->dep_prev->stream_id);
7155 CU_ASSERT(101 == stream->dep_prev->stream_id);
7169 CU_ASSERT(211 == stream->dep_prev->stream_id);
7350 frame.hd.stream_id = 5;
7519 frame.hd.stream_id = 0;
7539 frame.hd.stream_id = 1;
7548 frame.hd.stream_id = 1;
7553 frame.hd.stream_id = 0;
7575 frame.hd.stream_id = 0;
7624 CU_ASSERT(0 == item->frame.hd.stream_id);
7641 CU_ASSERT(0 == item->frame.hd.stream_id);
7779 frame.hd.stream_id = 0;
9552 CU_ASSERT(1 == stream->stream_id);
9570 CU_ASSERT(3 == stream->stream_id);
9788 CU_ASSERT(1 == stream->stream_id);
9793 CU_ASSERT(0 == stream->stream_id);
9826 CU_ASSERT(1 == session->closed_stream_tail->stream_id);
9832 CU_ASSERT(5 == session->closed_stream_tail->stream_id);
9833 CU_ASSERT(1 == session->closed_stream_head->stream_id);
9845 CU_ASSERT(5 == session->closed_stream_tail->stream_id);
9860 CU_ASSERT(3 == session->closed_stream_head->stream_id);
9867 CU_ASSERT(3 == session->closed_stream_head->stream_id);
9872 CU_ASSERT(3 == session->closed_stream_head->stream_id);
9884 int32_t stream_id;
9902 stream_id = (NGHTTP2_MIN_IDLE_STREAMS - 1) * 2 + 1;
9903 CU_ASSERT(1 == session->idle_stream_head->stream_id);
9904 CU_ASSERT(stream_id == session->idle_stream_tail->stream_id);
9906 stream_id += 2;
9908 open_recv_stream2(session, stream_id, NGHTTP2_STREAM_IDLE);
9912 CU_ASSERT(3 == session->idle_stream_head->stream_id);
9913 CU_ASSERT(stream_id == session->idle_stream_tail->stream_id);
10006 int32_t stream_id;
10013 stream_id = 1;
10014 for (i = 0; i < 250; ++i, stream_id += 2) {
10015 dep_stream = open_stream_with_dep(session, stream_id, dep_stream);
10018 stream_id = 1;
10019 for (i = 0; i < 250; ++i, stream_id += 2) {
10020 stream = nghttp2_session_get_stream(session, stream_id);
10145 CU_ASSERT(1 == item->frame.hd.stream_id);
10173 CU_ASSERT(2 == item->frame.hd.stream_id);
10359 frame.hd.stream_id = 4;
10384 int32_t stream_id;
10395 stream_id = nghttp2_submit_request(session, NULL, NULL, 0, NULL, NULL);
10396 CU_ASSERT(stream_id >= 1);
10398 nghttp2_submit_rst_stream(session, NGHTTP2_FLAG_NONE, stream_id,
10409 stream = nghttp2_session_get_stream(session, stream_id);
10425 stream = nghttp2_session_get_stream(session, stream_id);
10512 CU_ASSERT(1 == item->frame.hd.stream_id);
10539 CU_ASSERT(2 == item->frame.hd.stream_id);
10587 int32_t stream_id,
10597 switch (stream_id) {
10599 CU_ASSERT(0 == nghttp2_submit_response(session, stream_id, resnv,
10603 CU_ASSERT(0 == nghttp2_submit_data(session, NGHTTP2_FLAG_NONE, stream_id,
10867 CU_ASSERT(4 == stream4->stream_id);
10872 /* If pri_spec->stream_id does not exist, and it is idle stream, it
10883 CU_ASSERT(8 == stream8->stream_id);
10885 CU_ASSERT(10 == stream10->stream_id);
10897 pri_spec.stream_id = 6;
10908 pri_spec.stream_id = 2;
10955 CU_ASSERT(141 == session->idle_stream_head->stream_id);
10977 CU_ASSERT(141 == session->idle_stream_head->stream_id);
10987 int32_t stream_id, last_stream_id;
11006 for (stream_id = 3; stream_id < last_stream_id; stream_id += 2) {
11007 /* 1 -> stream_id */
11008 nghttp2_priority_spec_init(&pri_spec, stream_id, 16, 0);
11017 CU_ASSERT(1 == session->idle_stream_head->stream_id);
11028 CU_ASSERT(3 == session->idle_stream_head->stream_id);
11037 int32_t stream_id, last_stream_id;
11056 for (stream_id = 3; stream_id < last_stream_id; stream_id += 2) {
11057 /* 1 -> stream_id */
11058 nghttp2_priority_spec_init(&pri_spec, stream_id, 16, 0);
11066 CU_ASSERT(1 == session->idle_stream_head->stream_id);
11076 CU_ASSERT(3 == session->idle_stream_head->stream_id);
11105 CU_ASSERT(1 == item->frame.window_update.hd.stream_id);
11160 CU_ASSERT(0 == item->frame.window_update.hd.stream_id);
11224 CU_ASSERT(1 == item->frame.hd.stream_id);
11252 CU_ASSERT(0 == item->frame.hd.stream_id);
11266 int32_t stream_id;
11298 stream_id = nghttp2_submit_request(session, NULL, reqnv, ARRLEN(reqnv),
11301 CU_ASSERT(stream_id > 0);
11314 stream = nghttp2_session_get_stream_raw(session, stream_id);
11324 stream_id = nghttp2_submit_push_promise(session, NGHTTP2_FLAG_NONE, 1, reqnv,
11327 CU_ASSERT(stream_id > 0);
11340 stream = nghttp2_session_get_stream_raw(session, stream_id);
11586 nghttp2_session *session, int32_t stream_id, uint8_t *buf, size_t len,
11594 return fixed_length_data_source_read_callback(session, stream_id, buf, len,
11657 int32_t stream_id;
11667 stream_id = nghttp2_submit_request(session, NULL, reqnv, ARRLEN(reqnv), NULL,
11670 rv = nghttp2_session_set_stream_user_data(session, stream_id, &user_data2);
11679 nghttp2_session_get_stream_user_data(session, stream_id));
11739 pri_spec.stream_id = 5;
11750 CU_ASSERT(pri_spec.stream_id == item->frame.headers.pri_spec.stream_id);
11767 pri_spec.stream_id = 5;
11983 int32_t stream_id;
12019 stream_id = (int32_t)(i * 2 + 1);
12027 stream_id, NGHTTP2_HCAT_HEADERS, NULL, nva,
12043 nghttp2_frame_rst_stream_init(&frame.rst_stream, stream_id,
12075 nghttp2_session *session, nghttp2_hd_deflater *deflater, int32_t stream_id,
12089 if (nghttp2_session_is_my_stream_id(session, stream_id)) {
12090 open_sent_stream2(session, stream_id, (nghttp2_stream_state)stream_state);
12092 open_recv_stream2(session, stream_id, (nghttp2_stream_state)stream_state);
12096 rv = pack_headers(&bufs, deflater, stream_id, NGHTTP2_FLAG_END_HEADERS, nva,
12118 nghttp2_session *session, nghttp2_hd_deflater *deflater, int32_t stream_id,
12131 if (nghttp2_session_is_my_stream_id(session, stream_id)) {
12132 open_sent_stream2(session, stream_id, (nghttp2_stream_state)stream_state);
12134 open_recv_stream2(session, stream_id, (nghttp2_stream_state)stream_state);
12138 rv = pack_headers(&bufs, deflater, stream_id, NGHTTP2_FLAG_END_HEADERS, nva,
13081 CU_ASSERT(1 == item->frame.hd.stream_id);
13303 CU_ASSERT(4 == item->frame.hd.stream_id);