Skip to content

Conversation

@juhaylinen
Copy link
Contributor

@juhaylinen juhaylinen commented Jun 27, 2025

POLLHUP event may be returned even if there is still data to read and POLLIN is set. To ensure all data is consumed, check for POLLHUP after handling POLLIN.

(cherry picked from commit ed79675)

Copy link
Contributor

@rlubos rlubos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Congrats on PR number 3000.

@juhaylinen juhaylinen force-pushed the fromlist_http_client_pollhup branch 2 times, most recently from f3c1375 to 8534f79 Compare July 1, 2025 07:24
@juhaylinen juhaylinen changed the title [nrf fromlist] net: http_client: Fix handling of POLLHUP [nrf fromtree] net: http_client: Fix handling of POLLHUP Jul 1, 2025
@juhaylinen juhaylinen force-pushed the fromlist_http_client_pollhup branch from 8534f79 to e3a1c50 Compare July 1, 2025 07:30
@juhaylinen
Copy link
Contributor Author

Changed to fromtree PR

@juhaylinen juhaylinen force-pushed the fromlist_http_client_pollhup branch 2 times, most recently from 867e7a9 to aa614bc Compare July 1, 2025 17:23
POLLHUP event may be returned even if there is still data to read
and POLLIN is set. To ensure all data is consumed, check for
POLLHUP after handling POLLIN.

https://man7.org/linux/man-pages/man2/poll.2.html

Signed-off-by: Juha Ylinen <[email protected]>
(cherry picked from commit ed79675)
@juhaylinen juhaylinen force-pushed the fromlist_http_client_pollhup branch from aa614bc to b2401f7 Compare July 2, 2025 06:33
@sonarqubecloud
Copy link

sonarqubecloud bot commented Jul 2, 2025

@nordicjm nordicjm merged commit b2fe315 into nrfconnect:main Jul 2, 2025
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants