Stream connection hanging forever

This issue has been tracked since 2023-02-15.

Describe the bug

I have a stream service in a server behind a proxy that has a timeout of 10 min and then closes the connection, when this happens I expect the async iterator to throw an exception (so I can reconnect again) but instead it just hangs forever.

I found this related issue in the grpc-js library which looks the same, but I've been able to workaround it by enabling sending keepalive pings with 'grpc.keepalive_time_ms' option, can a similar option be added to connect-node library?

timostamm wrote this answer on 2023-02-17

Thanks for raising this, Jean Pierre. Stream termination with a proxy in between can be tricky.
To clarify, this happens with a client transport from @bufbuild/connect-node over H2?

Just hanging forever is not acceptable. Yes I'm sure we will be able to provide a fix for this.

jeanp413 wrote this answer on 2023-02-17

yes I'm using @bufbuild/connect-node over http2

More Details About Repo
Owner Name bufbuild
Repo Name connect-es
Full Name bufbuild/connect-es
Language TypeScript
Created Date 2022-02-16
Updated Date 2023-03-24
Star Count 852
Watcher Count 20
Fork Count 33
Issue Count 17

YOU MAY BE INTERESTED

Issue Title Created Date Updated Date