[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: wget2 | Integration of ngtcp2 and nghttp3 with wget2 (!527)
From: |
@rockdaboot |
Subject: |
Re: wget2 | Integration of ngtcp2 and nghttp3 with wget2 (!527) |
Date: |
Sun, 17 Mar 2024 19:10:05 +0000 |
Tim Rühsen started a new discussion on libwget/streams.c:
https://gitlab.com/gnuwget/wget2/-/merge_requests/527#note_1818244937
> +{
> + wget_byte *curr_data, *next_data, *head_data;
> + if (!stream->buffer)
> + return NULL;
> +
> + curr_data = (wget_byte *)wget_list_getfirst(stream->buffer);
> + head_data = curr_data;
> +
> + while (curr_data) {
> + if (!wget_byte_get_transmitted(curr_data) &&
> wget_byte_get_type(curr_data) == RESPONSE_DATA_BYTE)
> + return curr_data;
> +
> + next_data = (wget_byte *)wget_list_getnext((const void
> *)curr_data);
> + if (next_data == head_data) {
> + break;
> + } else {
No need for the `else` construction here, because of the `break`.
--
Reply to this email directly or view it on GitLab:
https://gitlab.com/gnuwget/wget2/-/merge_requests/527#note_1818244937
You're receiving this email because of your account on gitlab.com.
- Re: wget2 | Integration of ngtcp2 and nghttp3 with wget2 (!527), Harshmohan Kulkarni (@harshmohan07), 2024/03/08
- Re: wget2 | Integration of ngtcp2 and nghttp3 with wget2 (!527), @rockdaboot, 2024/03/10
- Re: wget2 | Integration of ngtcp2 and nghttp3 with wget2 (!527), @rockdaboot, 2024/03/17
- Re: wget2 | Integration of ngtcp2 and nghttp3 with wget2 (!527), @rockdaboot, 2024/03/17
- Re: wget2 | Integration of ngtcp2 and nghttp3 with wget2 (!527),
@rockdaboot <=
- Re: wget2 | Integration of ngtcp2 and nghttp3 with wget2 (!527), @rockdaboot, 2024/03/17
- Re: wget2 | Integration of ngtcp2 and nghttp3 with wget2 (!527), @rockdaboot, 2024/03/23