Connection failure with localhost
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 35/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- haskell
- Lĩnh vực
- distributed-systems, networking
Hướng nghiên cứu
Kiểm tra commit 21cd334ef3aa78e2039eff3874fc2d63ea3cd6af, bắt đầu từ lệnh gọi N.getAddrInfo và decodeSockAddr xung quanh dòng lỗi được liên kết. Tái hiện một kết nối bằng localhost trên hệ thống phân giải nó thành ::1, sau đó xác minh rằng các kết nối localhost không còn thất bại trong khi hành vi IPv4 vẫn được giữ nguyên.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
I'm observing failures when trying to connect and send messages to localhost:
TransportError ConnectFailed "Network.Socket.recvBuf: resource vanished (Connection reset by peer)"
I did not construct a minimal example, but I've traced the issue to the following commit to network-transport-tcp. In particular the original failure occurs in this line. The issue is that at this point sockAddr has the value ::1 but decodeSockAddr only supports IPv4 addresses. Adding a dummy case that handles IPv6 and always returns 127.0.0.1:<port> fixes the connection failures in my case.
The IPv6 address originates from this call to N.getAddrInfo when host="localhost".
A work-around is to always use 127.0.0.1 instead of localhost.
This depends on system configuration, as the issue was only observed on some machines.
- Ngôn ngữ chính
- Haskell
- Star
- 753
- Fork
- 101
- Merge trung bình
- 1 ngày 3 giờ
- Pull request đã merge (30 ngày)
- 4
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
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-distributed/distributed-process
-
enhancement Feature Request
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
haskell-distributed/distributed-process#486 · 1 bình luận · 1 reaction ·
-
discuss enhancement Feature Request
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
haskell-distributed/distributed-process#478 · 4 bình luận · 3 reaction ·
-
enhancement Feature Request
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 15/100
haskell-distributed/distributed-process#476 · 2 reaction ·
-
Demonstrating the use of Cloud Haskell for a Raft implementationCó thể làm lại được @LaurentRDC đã nhận 482 ngày trước và không có pull request nào đang mở. Đang mởenhancement Feature Request
haskell-distributed/distributed-process#475 · 3 reaction · 1 người được giao ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 20/100
haskell-distributed/distributed-process#473 · 4 bình luận · 1 reaction ·
Tất cả issue của haskell-distributed/distributed-process
Issue tương tự
-
MorphRule, DataizeRule and ContextualizeRule silently accept unknown YAML keys, unlike rewrite `Rule`Có thể đã có người làm @renyamamoto2026-cmyk đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
objectionary/phino#2107 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 72/100
tweag/tricorder#640 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày