dart-lang / dart-lang/http

Can't catch exception occur during goaway frame

Open
#1,364 0 comments 0 reactions 0 assignees View on GitHub
package:http2 type-code-health type-enhancement
Dominant language
Dart
Stars
1.1k
Forks
419
Avg merge
4d 14h
Merged PRs (30d)
8

Description

Hello! Thanks for the lib). I ran into the following problem. When server send me goaway frame, StreamHandler class create following exception:

`StreamException(
id,
'Remote end was telling us to stop. This stream was not processed '
'and can therefore be retried (on a new connection).')`

This StreamException class is not provide outside the http2 lib. I can check this exception only if i directly import it:

`import 'package:http2/src/sync_errors.dart'`

But it is not cool providing class this way)
Maybe there is an any other way to check server send me goaway frame?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.