http2 hung at await for stream.incomingMessages
Open
package:http2
type-enhancement
type-question
- Dominant language
- Dart
- Stars
- 1.1k
- Forks
- 419
- Avg merge
- 4d 14h
- Merged PRs (30d)
- 8
Description
in http2 demo there is such code to deal message;
```
var stream = transport.makeRequest(headers, endStream: true);
await for (var message in stream.incomingMessages) {
```
but if the connection is closed after makeRequest, then the await will hung there;
Contributor guide
Research direction
Start with the HTTP/2 demo and trace the code around transport.makeRequest and stream.incomingMessages. Reproduce the case where the connection closes immediately after makeRequest, then identify the relevant stream-termination behavior; done should include a test or demonstrated behavior showing that awaiting incomingMessages completes instead of hanging.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- dart
- Domain
- networking
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100