struct cf_ngtcp2_ctx *ctx = cf->ctx;
struct pkt_io_ctx local_pktx;
ngtcp2_tstamp expiry;
- ngtcp2_duration timeout;
if(!pktx) {
pktx_init(&local_pktx, cf, data);
ngtcp2_ccerr_set_liberr(&ctx->last_error, rv, NULL, 0);
return CURLE_SEND_ERROR;
}
- timeout = 0;
result = cf_progress_ingress(cf, data, pktx);
if(result)
return result;
}
if(expiry > pktx->ts) {
- timeout = expiry - pktx->ts;
+ ngtcp2_duration timeout = expiry - pktx->ts;
if(timeout % NGTCP2_MILLISECONDS) {
timeout += NGTCP2_MILLISECONDS;
}