-
Notifications
You must be signed in to change notification settings - Fork 592
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
Make _batchRequestQueue const #1769
Make _batchRequestQueue const #1769
Conversation
There is PHP test failure
|
_reference(other._reference) | ||
Ice::ObjectPrx::ObjectPrx(const ReferencePtr& ref) noexcept : | ||
_reference(ref), | ||
_batchRequestQueue(ref->isBatch() ? _reference->getBatchRequestQueue() : nullptr) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this a change in behavior? In the previous implementation of _getBatchRequestQueue we always grabbed the request queue from reference.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is a slight change of behavior:
- for regular proxies: no change in behavior
- for fixed proxies:
- before: calling flushBatchRequest on any fixed proxy flushes the batch request queue of the underlying connection
- after: calling flushBatchRequest on a fixed proxy that is not batch does not flush the batch request queue of the underlying connection
If desired, I can restore the old behavior.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm fine with either behavior.
The issue is PHP is testing flushBatchRequest on a non-batch proxy ... which we don't test anywhere else. Fixing... |
This is a small update to Proxy to make its _bachRequestQueue data member const.