Skip to content

Query about the working of picoquic_mark_active_stream #1819

Answered by huitema
tarundjoshi asked this question in Q&A
Discussion options

You must be logged in to vote

I looked at your client code. I think the issue is with:

        case picoquic_callback_prepare_to_send:
            if(length < 10){
                /* Don't send if the packet is too small */
                picoquic_mark_active_stream(client_ctx->cnx, stream_ctx->stream_id, 1, stream_ctx);
                break;
            }

This code does not match the recommendation in `send_receive_data.md, which suggests writing:

        case picoquic_callback_prepare_to_send:
            if(length < 10){
                /* Don't send if the packet is too small -- request 0 length buffer, set "still_active" bit. */
                (void)picoquic_provide_stream_data_buffer(bytes, 0, 0, 1);
       …

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@tarundjoshi
Comment options

@huitema
Comment options

@tarundjoshi
Comment options

@huitema
Comment options

Answer selected by tarundjoshi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants