phoenix-rtos/phoenix-rtos-project

libphoenix/select: timeout is handled incorrectly

Aperta

#1390 aperta il 29 ago 2025

 (0 commenti) (0 reazioni) (1 assegnatario)C (48 fork)auto 404
good first issue

Metriche repository

Star
 (62 stelle)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

When calling select with nfds = 0 timeval is interpreted incorrectly: tv_sec of timeout in select are actually milliseconds due to bad conversion ratio (1e3 instead of 1e6). tv_usec doesn't work correctly either.

This causes some micropython tests to fail

Guida contributor