Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(lwip): Add early out in NetworkUDP::parsePacket() when socket has no data #10075

Merged

Commits on Jul 25, 2024

  1. fix(lwip): Add early out in NetworkUDP::parsePacket() when socket h…

    …as no data
    
    Previously, `NetworkUDP::parsePacket()` would take the time to allocate a 1460 byte buffer
    to call `recvfrom()` with, immediately freeing it if there was no data read.
    
    This change has it check if there is available data via `ioctl()` with `FIONREAD` first,
    saving the allocation and thus significantly increasing performance in no data situations.
    nitz committed Jul 25, 2024
    Configuration menu
    Copy the full SHA
    47993cd View commit details
    Browse the repository at this point in the history

Commits on Jul 29, 2024

  1. Configuration menu
    Copy the full SHA
    0e5f420 View commit details
    Browse the repository at this point in the history