ngx_log_debug0(NGX_LOG_DEBUG_EVENT, c->log, 0,
"quic ngx_quic_add_handshake_data");
- /* XXX: obtain client parameters after the handshake? */
if (!qc->client_tp_done) {
SSL_get_peer_quic_transport_params(ssl_conn, &client_params,
break;
}
- // TODO: check current state
+ /* TODO: check current state */
if (ngx_quic_long_pkt(pkt.flags)) {
if (ngx_quic_pkt_in(pkt.flags)) {
ngx_log_error(NGX_LOG_INFO, c->log, 0,
"quic ACK for the packet not in sent queue ");
- // TODO: handle error properly: PROTOCOL VIOLATION?
+ /* TODO: handle error properly: PROTOCOL VIOLATION */
return NGX_ERROR;
}
}
-/* pack a group of frames [start; end) into memory p and send as single packet */
static ngx_int_t
ngx_quic_send_frames(ngx_connection_t *c, ngx_queue_t *frames)
{
/********************************* DEBUG *************************************/
-//#define NGX_QUIC_DEBUG_PACKETS /* dump packet contents */
-//#define NGX_QUIC_DEBUG_FRAMES /* dump frames contents */
-//#define NGX_QUIC_DEBUG_FRAMES_ALLOC /* log frames alloc/reuse/free */
-//#define NGX_QUIC_DEBUG_CRYPTO
+/* #define NGX_QUIC_DEBUG_PACKETS */ /* dump packet contents */
+/* #define NGX_QUIC_DEBUG_FRAMES */ /* dump frames contents */
+/* #define NGX_QUIC_DEBUG_FRAMES_ALLOC */ /* log frames alloc/reuse/free */
+/* #define NGX_QUIC_DEBUG_CRYPTO */
#if (NGX_DEBUG)
ngx_quic_path_challenge_frame_t path_challenge;
ngx_quic_path_challenge_frame_t path_response;
} u;
- u_char info[128]; // for debug
+ u_char info[128]; /* for debug */
};