httpServe appears to be interfering with slave-thread
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 38/100
Hướng nghiên cứu
Start by tracing the shutdown path in Snap/Http/Server.hs, then compare the exception handling in SlaveThread.hs and PartialHandler.hs. Use the linked sections and the proposed minimal reproduction to verify whether ThreadKilled reaches the parent invoking httpServe. Done means Ctrl-C shuts down the server and child threads without their output continuing.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Children aren't getting harvested on ctrl-c in GHCi, can see their output continue even though the web server itself successfully shut down.
I think slave-thread needs 1 a ThreadKilled 2 exception to bubble up to the parent thread (the one in main which invoked httpServe) in order for it to do its thing.
This looks like a good candidate for starting to narrow things down.
I'll try to put together a minimal repro in a bit.
Some context from IRC:
< mightybyte> One of our apps started exhibiting this behavior a few months back.
< bitemyapp> I think perhaps it is not letting the ThreadKilled bubble up.
< mightybyte> And I think it happened around the time that some code was added that probably forked some threads.
< mightybyte> So that all lines up with what you're saying.
- Ngôn ngữ chính
- Haskell
- Star
- 197
- Fork
- 87
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
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 snapframework/snap-server
-
Timeout for pure valuesĐang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 38/100
snapframework/snap-server#118 · 5 bình luận ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
snapframework/snap-server#96 ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
snapframework/snap-server#94 · 1 reaction ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
snapframework/snap-server#92 · 2 bình luận ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
snapframework/snap-server#85 · 8 bình luận ·
Tất cả issue của snapframework/snap-server
Issue tương tự
-
bug comp: submit-api Dijkstra PV12 needs triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
IntersectMBO/cardano-node#6719 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
bug triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
simplex-chat/simplex-chat#7649 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
objectionary/phino#1725 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 82/100
tomjaguarpaw/bluefin#108 ·
-
infrastructure
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 92/100
alunduil/collection-json.hs#373 ·
Maintainer thường phản hồi trong vòng 1 ngày