http2 icon indicating copy to clipboard operation
http2 copied to clipboard

Can't catch exception occur during goaway frame

Open ViktorJasch opened this issue 5 years ago • 0 comments

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?

ViktorJasch avatar Dec 30 '19 07:12 ViktorJasch