Skip to content

[Bug] Pulsar Proxy Keep-Alive Interval is Hardcoded to 30s and Cannot Be Configured #23963

@eminaktas

Description

@eminaktas

Search before asking

  • I searched in the issues and found nothing similar.

Read release policy

  • I understand that unsupported versions don't get bug fixes. I will attempt to reproduce the issue on a supported version of Pulsar client and Pulsar broker.

Version

apachepulsar/pulsar-all:3.0.2

Minimal reproduce step

  • Start a connection to the Pulsar Broker through Pulsar Proxy.
  • Observe the debug logs—keep-alive is scheduled every 30 seconds, regardless of configuration settings.

What did you expect to see?

I expected the keep-alive interval for connections in Pulsar Proxy to be configurable through proxy.conf like as described here

What did you see instead?

The keep-alive interval is hardcoded to 30 seconds, with no way to modify it. The logs confirm this behavior:

2025-02-11T09:18:20,392+0000 [pulsar-proxy-io-2-8] DEBUG org.apache.pulsar.common.protocol.PulsarHandler - [[id: 0x4bf907e2, L:/xxx:6651 - R:/xxx:60882]] Scheduling keep-alive task every 30 s

Anything else?

No response

Are you willing to submit a PR?

  • I'm willing to submit a PR!

Metadata

Metadata

Assignees

Labels

type/bugThe PR fixed a bug or issue reported a bug

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions