Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tcplistener observer #1624

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ganeshmurthy
Copy link
Contributor

No description provided.

include/qpid/dispatch/protocol_observer.h Outdated Show resolved Hide resolved
include/qpid/dispatch/protocol_observer.h Outdated Show resolved Hide resolved
src/adaptors/tcp/tcp_adaptor.c Outdated Show resolved Hide resolved
listener->protocol_observer_config = 0;
listener->protocol_observer = 0;
}
} else if (!listener->protocol_observer) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Possible bug: If the observer for a listener is being changed, this IF clause will not match and the observer will not be updated.

Copy link
Contributor Author

@ganeshmurthy ganeshmurthy Oct 9, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

_setup_protocol_observer_LH() only handles setting up or tearing down of listener->protocol_observer when the observer goes from none to non-none or vice versa.
The observer is actually updated in qd_dispatch_update_tcp_listener()
Please let me know if that made sense ?

src/observers/http2/http2_observer.c Outdated Show resolved Hide resolved
… entity so observers can be directly specified or auto detected
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants