FIX: UdpSocket result from libc#151782
Conversation
|
r? @ChrisDenton |
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
|
I'm not convinced we should handle this if the platform doesn't – depending on the platform, |
In windows operating system two functions of this test cases passing (just polling) but in the libc recv_from with params not giving to do this (this is windows's fault) https://man7.org/linux/man-pages/man2/recv.2.html#top_of_page That is C's mess of results it can return 0 if client closed connection or zero buffer given Or we can just close the issue, because this issue excisting a long time ago and no one answered I think we have two options |
Thank you for your response. For the second issue in parentheses, I have already briefly explained above the difference in behavior between POSIX and NT operating systems. My goal was simply to minimize this difference. |
|
libs-api meets weekly to discuss issues. No action on your part is necessary but any relevant information you can provide is useful. Summarising existing information can also be useful if the information is spread out. These issues were discussed at the tail end of the last meeting so no definite conclusion was reached. But the general feeling seemed to be that we shouldn't be changing system behaviour here, instead we should document it. But that's just my impression, no conclusion was reached within the meeting time. |
Understand, however i think that is one of the rust's ideology, where software should have same behaviour everywhere. If another issues likes this (posix, nt, other) appears, i will try to close each one to obey this rules. But anyway about Rust's ideology you better know than me, i hope at the next weekend it will be finally resolved |
Issue:
#149392
Additional:
libc recv function returns zero in cases when 0 bytes requested or client disconnected gracefully, I think sometimes need to handle this