ngx_log_debug0(NGX_LOG_DEBUG_EVENT, c->log, 0, "quic run");
- c->log->action = "QUIC initialization";
-
rc = ngx_quic_input(c, c->buffer, conf);
if (rc != NGX_OK) {
ngx_quic_close_connection(c, rc == NGX_DECLINED ? NGX_DONE : NGX_ERROR);
ngx_quic_client_id_t *cid;
ngx_quic_connection_t *qc;
- c->log->action = "creating new quic connection";
-
qc = ngx_pcalloc(c->pool, sizeof(ngx_quic_connection_t));
if (qc == NULL) {
return NULL;
ngx_quic_connection_t *qc;
static u_char buf[NGX_QUIC_MAX_UDP_PAYLOAD_SIZE];
+ ngx_log_debug0(NGX_LOG_DEBUG_EVENT, rev->log, 0, "quic input handler");
+
ngx_memzero(&b, sizeof(ngx_buf_t));
b.start = buf;
b.end = buf + sizeof(buf);
c = rev->data;
qc = c->quic;
- ngx_log_debug0(NGX_LOG_DEBUG_EVENT, rev->log, 0, "quic input handler");
+ c->log->action = "handling quic input";
if (rev->timedout) {
ngx_log_error(NGX_LOG_INFO, c->log, NGX_ETIMEDOUT,
p = b->pos;
while (p < b->last) {
- c->log->action = "processing quic packet";
ngx_memzero(&pkt, sizeof(ngx_quic_header_t));
pkt.raw = b;
static u_char buf[NGX_QUIC_MAX_UDP_PAYLOAD_SIZE];
+ c->log->action = "parsing quic packet";
+
rc = ngx_quic_parse_packet(pkt);
if (rc == NGX_DECLINED || rc == NGX_ERROR) {
return rc;
}
+ c->log->action = "processing quic packet";
+
qc = c->quic;
if (qc) {
if (pkt->level == ssl_encryption_initial) {
+ c->log->action = "creating quic connection";
+
if (pkt->dcid.len < NGX_QUIC_CID_LEN_MIN) {
/* 7.2. Negotiating Connection IDs */
ngx_log_error(NGX_LOG_INFO, c->log, 0,
}
}
+ c->log->action = "decrypting packet";
+
keys = &qc->keys[pkt->level];
if (keys->client.key.len == 0) {
ngx_gettimeofday(&pkt->received);
}
+ c->log->action = "handling payload";
+
if (pkt->level != ssl_encryption_application) {
return ngx_quic_payload_handler(c, pkt);
}