Repository navigation
Conversation
|
Thanks for the contribution! The changes look good to me. But I'd like to ask: was this PR automatically created in batches by an AI agent? I see #1070 was also created at the same time, and they both cover the same #1069. According to our Code of Conduct, AI tools should be used with disclosure. I'll let other maintainers judge this. |
|
Thanks for the review and for checking in, @AsakuraMizu! To disclose in line with the Code of Conduct: yes, AI coding assistance was used to help explore the code paths and draft the initial patch, which was then tested against local reproduction cases. #1070 and #1071 addressed two distinct aspects of #1069 (empty packet handling vs inverted polarity) rather than being an automated duplicate blast, but I understand the concern and appreciate the team's diligence. Completely happy to follow whatever review or disclosure process the compio maintainers prefer. |
|
@amandeavor Could you rebase the PR? |
f038edc to
2b9cd01
Compare
may_fragment was set true when don't-fragment options succeeded, the opposite of quinn-udp. Invert so MTU discovery is enabled only when fragmentation is actually forbidden (compio-rs#1068). Also return early when meta.len == 0 so chunks(0) does not panic on empty UDP datagrams (compio-rs#1069).
|
Please update the PR title and description accordingly. |
|
hey @Berrysoft, rebased onto master and dropped the endpoint.rs part since that already landed in #1070, so this just keeps the may_fragment fix now. thanks! |
Summary
may_fragmentpolarity (#1068):set_socket_option!returnstrueon success. Quinn-udp setsmay_fragmentwhen the don't-fragment / PMTUD option is unsupported (|= !…). Compio had the invert missing.Fixes #1068