[QUIC] Wrong dcid len in ngx_quic_select_socket_by_dcid

Khomutov Vladimir vl at nginx.com
Wed Mar 17 06:43:43 UTC 2021


> 11.03.2021 10:08, Gao,Yan(ACG VCP) пишет:
>>
>> Console client:
>>
>> ~/ngtcp2/examples/client 127.0.0.1 443 
>> https://example.com:443/index.html 
>> --dcid=00000000000000166142cdef2ef2ca5e4be5
>>
>> Bpf log:
>>
>>            <...>-43083   [001] d.s1 94117.746924: bpf_trace_printk: 
>> nginx quic socket len 0x1d
>>
>>            <...>-43083   [001] d.s1 94117.746936: bpf_trace_printk: 
>> nginx quic default route for key 0x16
>>
>>            <...>-43083   [000] d.s1 94117.764132: bpf_trace_printk: 
>> nginx quic socket len 0x1d
>>
>>            <...>-43083   [000] d.s1 94117.764140: bpf_trace_printk: 
>> nginx quic socket selected by key 0x20
>>
>>            <...>-43083   [000] d.s1 94117.764709: bpf_trace_printk: 
>> nginx quic socket selected by key 0x20
>>
>>            <...>-43083   [000] d.s1 94117.769174: bpf_trace_printk: 
>> nginx quic socket selected by key 0x20
>>
>>            <...>-43083   [000] d.s1 94127.852160: bpf_trace_printk: 
>> nginx quic socket selected by key 0x20
>>
>> The  [nginx quic socket len] is added to show the case, it shoud be 
>> 0x12, as 18 bytes
>>
>> Len should assign after advance_data(1)
>>
>> Patch and pcap see the attachment
>>
>> Gao,Yan(ACG VCP)
>>
>>
> Thank you for reporting, now I see the problem, will fix it.
>
Fixed in http://hg.nginx.org/nginx-quic/rev/1a489587e1c8, thanks again!

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx-devel/attachments/20210317/ad69eb3e/attachment.htm>


More information about the nginx-devel mailing list