Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash - httpserver can't send response #986

Open
benbierens opened this issue Nov 4, 2024 · 0 comments
Open

Crash - httpserver can't send response #986

benbierens opened this issue Nov 4, 2024 · 0 comments

Comments

@benbierens
Copy link
Contributor

Seen in SwarmTest[20,20] (https://github.com/codex-storage/cs-codex-dist-tests/blob/master/Tests/CodexTests/DownloadConnectivityTests/SwarmTests.cs) on v0.1.8

Modification: Logging for nodes was turned up:

            var nodes = StartCodex(numNodes, s => s.WithLogLevel(CodexPlugin.CodexLogLevel.Trace,
                new CodexPlugin.CodexLogCustomTopics(CodexPlugin.CodexLogLevel.Warn, CodexPlugin.CodexLogLevel.Trace)));

Test runs 20 nodes with a 20MB file.
15 nodes successfully download the file.
4 nodes crash with the following error:

WRN 2024-11-04 08:52:59.762+00:00 Excepting streaming blocks                 topics="codex restapi" tid=1 exc="Unable to send response data, reason: Stream finished or remote side dropped connection" count=646927
INF 2024-11-04 08:52:59.762+00:00 Sent bytes                                 topics="codex restapi" tid=1 cid=zDv*Q223mw bytes=7667712 count=646928
ERR 2024-11-04 08:52:59.762+00:00 Unhandled exception in async proc, aborting topics="codex" tid=1 msg="/src/vendor/nim-chronos/chronos/apps/http/httpserver.nim(1422, 15) `currentState`gensym835 == HttpResponseState.Empty` Response body was already sent [Failed]" count=646929

It's possible but not likely this is caused by the download stream being interrupted. In either case the node should not crash.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant