ADDING FEC - always put the data length in stream frames (should be pluginized)
@@ -1117,7 +1117,7 @@ protoop_arg_t prepare_stream_frame(picoquic_cnx_t* cnx)
if (length >= space) {
length = space;
- } else {
+ }
/* This is going to be a trial and error process */
size_t l_len = 0;
@@ -1140,7 +1140,6 @@ protoop_arg_t prepare_stream_frame(picoquic_cnx_t* cnx)
byte_index += l_len;
}
}
- }
if (ret == 0 && length > 0) {
memcpy(&bytes[byte_index], stream->send_queue->bytes + stream->send_queue->offset, length);
