googleapis / googleapis/google-cloud-node

Streaming pull subscriber does not notify of loss of network

Aperta
#7,633 18 commenti 5 reazioni 1 assegnatario Rivendicata da @feywind Vedi su GitHub
api: pubsub priority: p3 type: bug
Lingua principale
TypeScript
Stelle
3.2k
Fork
712
Merge medio
2g 9h
PR unite (30g)
104

Descrizione

- OS: Ubuntu 22.04
- Node.js version: 18.16.0
- npm version: 9.5.1
- `@google-cloud/pubsub` version: 3.7.1

#### Steps to reproduce

1. Call PubSub.subscription(), and then setup on() handlers for 'message', 'debug', 'error', and 'close'
2. After initiating the initial subscription and receiving some streaming pull messages, disconnect the network on the machine
3. Notice that there are no error or debug events of any kind after several minutes. In other words, there is no notice of the fact that the network is gone and the subscription pull is therefore no longer operating. If the network is disconnected before the streaming pull begins, then there are debug messages and eventually there is an error after the default 5 minute timeout where the subscription is closed. But none of this happens if the network disconnects after the stream has been established.

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.