PetterIsberg commented on issue #84: URL: https://github.com/apache/pulsar-dotpulsar/issues/84#issuecomment-895146053
Thank you for the quick answers! I will try to describe our issue and what we have tested. We made a test with a small consumer app with state monitoring and client exception handling according to the wiki here on Github ( [https://github.com/PetterIsberg/SimplePulsarClient/blob/master/Program.cs](https://github.com/PetterIsberg/SimplePulsarClient/blob/master/Program.cs) ). Shutting down the server is correctly identified by the client exception handler, and it reconnects without issues. When we tried to simulate network errors however, we ran into an issue. We started the Pulsar server in a virtual machine, and by disconnecting the network our consumer were stuck trying to receive messages from the server. **Steps to reproduce** Tested with Dotpulsar v 1.1.2 on Windows 10 and Pulsar server 2.7.1 on Ubuntu in Virtualbox. 1. Start Pulsar server in a virtual machine. 2. Connect to the pulsar server with the above mentioned Pulsar consumer from another VM or from the host. 3. Send messages to the topic to make sure they are received by the consumer. 4. Disconnect the network from the Pulsar server VM. Result Consumer is stuck waiting for messages. Even reconnecting the VM network after a few minutes won't get the consumer to receive messages or identify a dead connection. There is no console prints at all at this point. Since the TCP stack in this case don't try to send anything and it doesn't get any FIN messages it probably still think the connection is alive. If this is a valid issue, and not that we have made some error in our client, a solution to this could be to have a timer that reconnects the client if not receiving anything (including ping) for a certain time period. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: dev-unsubscr...@pulsar.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org