swift-server / swift-server/async-http-client
Invalid state: idle
Nobody has claimed this yet.
- Dominant language
- Swift
- Stars
- 1.1k
- Forks
- 156
- PR merge metrics
- No merged PRs in 30d
Description
Hello,
I am seeing an odd issue. I am running a Swift based server and now randomly get a crash with this message.
AsyncHTTPClient/HTTP1ConnectionStateMachine.swift:332: Fatal error: Invalid state: idle
I am unable to reliably reproduce it, as it is random. My code has not really changed very much (certainly not enough to explain what's going on here).
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with AsyncHTTPClient/HTTP1ConnectionStateMachine.swift at line 332 and investigate the transition that reaches the invalid idle state. First work toward a reliable reproduction of the random crash; done means the invalid state is understood and covered by a regression test or otherwise prevented.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- swift
- Domain
- networking
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Active
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100