mirror of
https://github.com/curl/curl.git
synced 2026-08-26 09:53:32 +03:00
all: remove FIXME and TODO comments
We can always improve. These comments tend to linger and go misleading or plain wrong over time. Closes #16283
This commit is contained in:
parent
f1d1c98b7f
commit
94c596bbc5
23 changed files with 51 additions and 71 deletions
|
|
@ -441,10 +441,10 @@ static bool MSH3_CALL msh3_data_received(MSH3_REQUEST *Request,
|
|||
CURLcode result;
|
||||
bool rv = FALSE;
|
||||
|
||||
/* TODO: we would like to limit the amount of data we are buffer here.
|
||||
* There seems to be no mechanism in msh3 to adjust flow control and
|
||||
* it is undocumented what happens if we return FALSE here or less
|
||||
* length (buflen is an inout parameter).
|
||||
/* We would like to limit the amount of data we are buffer here. There seems
|
||||
* to be no mechanism in msh3 to adjust flow control and it is undocumented
|
||||
* what happens if we return FALSE here or less length (buflen is an inout
|
||||
* parameter).
|
||||
*/
|
||||
(void)Request;
|
||||
if(!stream)
|
||||
|
|
@ -703,8 +703,8 @@ static ssize_t cf_msh3_send(struct Curl_cfilter *cf, struct Curl_easy *data,
|
|||
goto out;
|
||||
}
|
||||
|
||||
/* TODO - msh3/msquic will hold onto this memory until the send complete
|
||||
event. How do we make sure curl does not free it until then? */
|
||||
/* msh3/msquic will hold onto this memory until the send complete event.
|
||||
How do we make sure curl does not free it until then? */
|
||||
*err = CURLE_OK;
|
||||
nwritten = len;
|
||||
}
|
||||
|
|
@ -838,7 +838,7 @@ static CURLcode cf_connect_start(struct Curl_cfilter *cf,
|
|||
MSH3_SET_PORT(&addr, (uint16_t)cf->conn->remote_port);
|
||||
|
||||
if(verify && (conn_config->CAfile || conn_config->CApath)) {
|
||||
/* TODO: need a way to provide trust anchors to MSH3 */
|
||||
/* Need a way to provide trust anchors to MSH3 */
|
||||
#ifdef DEBUGBUILD
|
||||
/* we need this for our test cases to run */
|
||||
CURL_TRC_CF(data, cf, "non-standard CA not supported, "
|
||||
|
|
@ -1006,7 +1006,7 @@ static CURLcode cf_msh3_query(struct Curl_cfilter *cf,
|
|||
|
||||
switch(query) {
|
||||
case CF_QUERY_MAX_CONCURRENT: {
|
||||
/* TODO: we do not have access to this so far, fake it */
|
||||
/* We do not have access to this so far, fake it */
|
||||
(void)ctx;
|
||||
*pres1 = 100;
|
||||
return CURLE_OK;
|
||||
|
|
@ -1091,7 +1091,7 @@ CURLcode Curl_cf_msh3_create(struct Curl_cfilter **pcf,
|
|||
|
||||
(void)data;
|
||||
(void)conn;
|
||||
(void)ai; /* TODO: msh3 resolves itself? */
|
||||
(void)ai; /* msh3 resolves itself? */
|
||||
ctx = calloc(1, sizeof(*ctx));
|
||||
if(!ctx) {
|
||||
result = CURLE_OUT_OF_MEMORY;
|
||||
|
|
|
|||
|
|
@ -394,7 +394,7 @@ static void quic_printf(void *user_data, const char *fmt, ...)
|
|||
struct Curl_cfilter *cf = user_data;
|
||||
struct cf_ngtcp2_ctx *ctx = cf->ctx;
|
||||
|
||||
(void)ctx; /* TODO: need an easy handle to infof() message */
|
||||
(void)ctx; /* need an easy handle to infof() message */
|
||||
va_list ap;
|
||||
va_start(ap, fmt);
|
||||
vfprintf(stderr, fmt, ap);
|
||||
|
|
@ -1591,7 +1591,7 @@ static ssize_t cf_ngtcp2_send(struct Curl_cfilter *cf, struct Curl_easy *data,
|
|||
if(ctx->tls_vrfy_result)
|
||||
return ctx->tls_vrfy_result;
|
||||
|
||||
(void)eos; /* TODO: use for stream EOF and block handling */
|
||||
(void)eos; /* use for stream EOF and block handling */
|
||||
result = cf_progress_ingress(cf, data, &pktx);
|
||||
if(result) {
|
||||
*err = result;
|
||||
|
|
@ -1965,8 +1965,8 @@ static CURLcode h3_data_pause(struct Curl_cfilter *cf,
|
|||
struct Curl_easy *data,
|
||||
bool pause)
|
||||
{
|
||||
/* TODO: there seems right now no API in ngtcp2 to shrink/enlarge
|
||||
* the streams windows. As we do in HTTP/2. */
|
||||
/* There seems to exist no API in ngtcp2 to shrink/enlarge the streams
|
||||
* windows. As we do in HTTP/2. */
|
||||
if(!pause) {
|
||||
h3_drain_stream(cf, data);
|
||||
Curl_expire(data, 0, EXPIRE_RUN_NOW);
|
||||
|
|
|
|||
|
|
@ -1980,7 +1980,7 @@ static ssize_t cf_osslq_send(struct Curl_cfilter *cf, struct Curl_easy *data,
|
|||
ssize_t nwritten;
|
||||
CURLcode result;
|
||||
|
||||
(void)eos; /* TODO: use to end stream */
|
||||
(void)eos; /* use to end stream */
|
||||
CF_DATA_SAVE(save, cf, data);
|
||||
DEBUGASSERT(cf->connected);
|
||||
DEBUGASSERT(ctx->tls.ossl.ssl);
|
||||
|
|
|
|||
|
|
@ -926,8 +926,8 @@ static ssize_t cf_quiche_send_body(struct Curl_cfilter *cf,
|
|||
nwritten = quiche_h3_send_body(ctx->h3c, ctx->qconn, stream->id,
|
||||
(uint8_t *)buf, len, eos);
|
||||
if(nwritten == QUICHE_H3_ERR_DONE || (nwritten == 0 && len > 0)) {
|
||||
/* TODO: we seem to be blocked on flow control and should HOLD
|
||||
* sending. But when do we open again? */
|
||||
/* Blocked on flow control and should HOLD sending. But when do we open
|
||||
* again? */
|
||||
if(!quiche_conn_stream_writable(ctx->qconn, stream->id, len)) {
|
||||
CURL_TRC_CF(data, cf, "[%" FMT_PRIu64 "] send_body(len=%zu) "
|
||||
"-> window exhausted", stream->id, len);
|
||||
|
|
@ -1204,8 +1204,8 @@ static CURLcode h3_data_pause(struct Curl_cfilter *cf,
|
|||
struct Curl_easy *data,
|
||||
bool pause)
|
||||
{
|
||||
/* TODO: there seems right now no API in quiche to shrink/enlarge
|
||||
* the streams windows. As we do in HTTP/2. */
|
||||
/* There seems to exist no API in quiche to shrink/enlarge the streams
|
||||
* windows. As we do in HTTP/2. */
|
||||
if(!pause) {
|
||||
h3_drain_stream(cf, data);
|
||||
Curl_expire(data, 0, EXPIRE_RUN_NOW);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue