Commit 6ed274e
committed
fix(host): translate POSIX poll flags to Windows WSAPoll flags
The guest sends POSIX poll flags (POLLIN=1, POLLOUT=4, POLLERR=8) but
WSAPoll uses different values (POLLRDNORM=256, POLLWRNORM=16, POLLERR=1).
Without translation, POSIX POLLIN was interpreted as Windows POLLERR,
preventing connection readiness detection on Windows.
Signed-off-by: danbugs <danilochiarlone@gmail.com>1 parent fa0d7bb commit 6ed274e
1 file changed
Lines changed: 44 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1705 | 1705 | | |
1706 | 1706 | | |
1707 | 1707 | | |
1708 | | - | |
| 1708 | + | |
| 1709 | + | |
| 1710 | + | |
| 1711 | + | |
| 1712 | + | |
| 1713 | + | |
| 1714 | + | |
| 1715 | + | |
| 1716 | + | |
| 1717 | + | |
| 1718 | + | |
| 1719 | + | |
| 1720 | + | |
| 1721 | + | |
| 1722 | + | |
| 1723 | + | |
| 1724 | + | |
| 1725 | + | |
| 1726 | + | |
| 1727 | + | |
| 1728 | + | |
| 1729 | + | |
| 1730 | + | |
| 1731 | + | |
| 1732 | + | |
| 1733 | + | |
| 1734 | + | |
| 1735 | + | |
| 1736 | + | |
| 1737 | + | |
| 1738 | + | |
| 1739 | + | |
| 1740 | + | |
| 1741 | + | |
| 1742 | + | |
| 1743 | + | |
| 1744 | + | |
| 1745 | + | |
| 1746 | + | |
| 1747 | + | |
| 1748 | + | |
1709 | 1749 | | |
1710 | 1750 | | |
1711 | 1751 | | |
| |||
1731 | 1771 | | |
1732 | 1772 | | |
1733 | 1773 | | |
1734 | | - | |
| 1774 | + | |
1735 | 1775 | | |
1736 | 1776 | | |
1737 | 1777 | | |
| |||
1740 | 1780 | | |
1741 | 1781 | | |
1742 | 1782 | | |
1743 | | - | |
| 1783 | + | |
1744 | 1784 | | |
1745 | 1785 | | |
1746 | 1786 | | |
| |||
1760 | 1800 | | |
1761 | 1801 | | |
1762 | 1802 | | |
1763 | | - | |
| 1803 | + | |
1764 | 1804 | | |
1765 | 1805 | | |
1766 | 1806 | | |
| |||
0 commit comments