Supporting WinIO in the same shape as POSIX (network 4.0)
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 12/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Lĩnh vực
- ci-cd, networking
Hướng nghiên cứu
This is a tracking issue for the network 4.0 WinIO plan, not a single self-contained change. Read the linked plan issues (#557, #602) and the checklist: nearly every item is complete, and the only unchecked item is Windows CI on GHC 9.14.2 once released. Done means the Windows CI matrix builds with WinIO on that GHC and the cabal guard still selects v3.2 where __IO_MANAGER_WINIO__ is below 2.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
This continues #602 as the plan for network 4.0 (#557): on Windows, support WinIO only, and in the same shape as POSIX.
Decisions
- WinIO only. Windows means WinIO (
+RTS --io-manager=native) from 4.0. The I/O manager is chosen by the executable's RTS options, so a library cannot pick it; keeping No IO Manager and WinIO side by side (<!>throughout,Network.Socket.Win32.Cancel,cbits/overlapped.c,cbits/asyncAccept.c) is most of the cost of Windows. v3.2 remains the line for No IO Manager and for older GHCs. - GHC with
__IO_MANAGER_WINIO__ >= 2: 9.12.5 or later in 9.12, 9.14.2 or later. - Readiness through
IOCTL_AFD_POLL. Completion ports alone report that an operation finished, not that one could be started, but the AFD driver beneath Winsock does report readiness, read and write alike. The ioctl is undocumented but long stable, and libuv (uv_poll), wepoll and mio rely on it. Issued overlapped on the socket, it completes on the I/O manager's port. We rely on it. FILE_SKIP_COMPLETION_PORT_ON_SUCCESSon every socket (#639), so that an operation or poll which finishes at once leaves no packet behind (#638).- Sockets behind a non-IFS Layered Service Provider are not supported. Such LSPs return handles which are not AFD files, so neither the flag nor the poll works on them; they have been deprecated since Windows 8.
Plan
- Basic WinIO support (#612, #626)
- No stray completion packets (#639)
- Readiness:
waitReadSocketSTM,waitWriteSocketSTMand theirwaitAndCancelversions throughIOCTL_AFD_POLL(#641) - The give-up API (
withReadable,withWritable,acceptWith,recvWithand so on) built from readiness as on POSIX, instead of running the operation in a thread of its own and cancelling it withCancelIoEx(#643, which also makes WinIO sockets non-blocking) - Removing the No IO Manager code (#644):
Network.Socket.Win32.Cancel,cbits/overlapped.c,cbits/asyncAccept.c, the No IO Manager side of every<!>, and thereadRawBufferPtr/writeRawBufferPtrpaths - A clear error when a program starts with No IO Manager on Windows (#644), saying that
--io-manager=nativeis needed -
buildable: Falseon Windows with a GHC whose__IO_MANAGER_WINIO__is below 2, so that the solver picks v3.2 there (#644) - Windows CI on GHC 9.14.2 once it is released (9.4 and 9.14.1 compile WinIO out)
- Documentation and README: WinIO is required on Windows; non-IFS LSPs are not supported (#641, #644)
- Ngôn ngữ chính
- Haskell
- Star
- 371
- Fork
- 211
- Merge trung bình
- 12 giờ 42 phút
- Pull request đã merge (30 ngày)
- 26
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của haskell/network
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
haskell/network#635 · 6 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Making `gracefulClose` more robust?Có thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mở
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
haskell/network#618 · 10 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
v4.0Đang mở
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 20/100
haskell/network#557 · 10 bình luận · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của haskell/network
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
haskell/bytestring#730 · 1 bình luận ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
seal-harness/seal-harness#399 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
add previously overlooked rulesĐang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
fmidue/codeworld-tasks#124 ·
-
allow haskell-src-exts-1.24Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
reflex-frp/reflex#563 ·