Commit dd138db
committed
[nrf fromlist] net: http_client: Fix handling of POLLHUP
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
Upstream PR #: 92241
Signed-off-by: Juha Ylinen <[email protected]>
(cherry picked from commit a474c9722f0c400a362e6f962943148808b040de)1 parent 93aefcf commit dd138db
1 file changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
517 | 517 | | |
518 | 518 | | |
519 | 519 | | |
520 | | - | |
521 | | - | |
522 | | - | |
523 | 520 | | |
524 | 521 | | |
525 | 522 | | |
| |||
593 | 590 | | |
594 | 591 | | |
595 | 592 | | |
| 593 | + | |
| 594 | + | |
| 595 | + | |
596 | 596 | | |
597 | 597 | | |
598 | 598 | | |
| |||
0 commit comments