[
https://issues.apache.org/jira/browse/DISPATCH-2198?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17387557#comment-17387557
]
ASF GitHub Bot commented on DISPATCH-2198:
------------------------------------------
kgiusti commented on a change in pull request #1324:
URL: https://github.com/apache/qpid-dispatch/pull/1324#discussion_r676864664
##########
File path: src/adaptors/http2/http2_adaptor.c
##########
@@ -625,15 +625,17 @@ static int snd_data_callback(nghttp2_session *session,
// Insert the framehd of length 9 bytes into the buffer
memcpy(qd_http2_buffer_cursor(http2_buff), framehd,
HTTP2_DATA_FRAME_HEADER_LENGTH);
qd_http2_buffer_insert(http2_buff, HTTP2_DATA_FRAME_HEADER_LENGTH);
- pn_raw_buffer_t pn_raw_buffs[stream_data->qd_buffers_to_send];
- int written =
qd_message_stream_data_buffers(stream_data->curr_stream_data, pn_raw_buffs,
stream_data->curr_stream_data_qd_buff_offset, stream_data->qd_buffers_to_send);
+
+ size_t diff =
qd_message_stream_data_buffer_count(stream_data->curr_stream_data) -
stream_data->curr_stream_data_qd_buff_offset;
+ pn_raw_buffer_t pn_raw_buffs[diff];
Review comment:
I thought we're avoiding VLA's, no? How big can 'diff' get? Any
chance line #629 wraps/overflows? What if it's zero?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
> [http2] Implement http2 flow control that incorporates q2 blocking/unblocking
> -----------------------------------------------------------------------------
>
> Key: DISPATCH-2198
> URL: https://issues.apache.org/jira/browse/DISPATCH-2198
> Project: Qpid Dispatch
> Issue Type: Improvement
> Components: Protocol Adaptors
> Reporter: Ganesh Murthy
> Assignee: Ganesh Murthy
> Priority: Major
> Fix For: 1.17.0
>
>
> Implement q2 blocking/unblocking in http2 adaptor. When the ingress router is
> q2 blocked, it should simply stop reading from the proton raw connection.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]