Skip to content
This repository has been archived by the owner on Nov 14, 2024. It is now read-only.

Fix shell freeze #145

Merged
merged 1 commit into from
Jan 5, 2024
Merged

Fix shell freeze #145

merged 1 commit into from
Jan 5, 2024

Commits on Jan 4, 2024

  1. [nrf noup] zephyr: Fix infinite loop in select

    fixup! [nrf noup] zephyr: Add support for WPA CLI zephyr
    
    In case of low-memory conditions e.g., in stress tests, the allocation
    failure causes the callback to skip recv, there by leaving data on the
    socket and causing select to trigger the callback in an infinite loop.
    
    This infinite loop causes threads starvation as WPA supplicant thread
    runs at a higher priority, and is manifested as shell freeze.
    
    Fix this by discarding the data on socket in case of memory allocation
    failure.
    
    Fixes SHEL-1967.
    
    Signed-off-by: Chaitanya Tata <Chaitanya.Tata@nordicsemi.no>
    krish2718 committed Jan 4, 2024
    Configuration menu
    Copy the full SHA
    8422392 View commit details
    Browse the repository at this point in the history