Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 701038 Details for
Bug 913448
invoking Receiver::fetch() in a loop for slow producer causes only first <prefetch> messages received
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Patch proposal
bz913448.patch (text/plain), 2.18 KB, created by
Pavel Moravec
on 2013-02-22 08:16:51 UTC
(
hide
)
Description:
Patch proposal
Filename:
MIME Type:
Creator:
Pavel Moravec
Created:
2013-02-22 08:16:51 UTC
Size:
2.18 KB
patch
obsolete
>diff -rup _qpid-0.18-orig/cpp/src/qpid/client/amqp0_10/ReceiverImpl.cpp _qpid-0.18-new/cpp/src/qpid/client/amqp0_10/ReceiverImpl.cpp >--- _qpid-0.18-orig/cpp/src/qpid/client/amqp0_10/ReceiverImpl.cpp 2013-02-19 13:53:07.548956753 +0100 >+++ _qpid-0.18-new/cpp/src/qpid/client/amqp0_10/ReceiverImpl.cpp 2013-02-21 14:42:52.442842887 +0100 >@@ -98,13 +98,14 @@ void ReceiverImpl::setCapacity(uint32_t > execute1<SetCapacity>(c); > } > >-void ReceiverImpl::startFlow(const sys::Mutex::ScopedLock&) >+void ReceiverImpl::startFlow(const sys::Mutex::ScopedLock&, bool setWindow) > { > if (capacity > 0) { > session.messageSetFlowMode(destination, FLOW_MODE_WINDOW); > session.messageFlow(destination, CREDIT_UNIT_MESSAGE, capacity); > session.messageFlow(destination, CREDIT_UNIT_BYTE, byteCredit); >- window = capacity; >+ if (setWindow) >+ window = capacity; > } > } > >@@ -182,7 +183,8 @@ bool ReceiverImpl::fetchImpl(qpid::messa > s.messageFlush(destination); > { > sys::Mutex::ScopedLock l(lock); >- startFlow(l); //reallocate credit >+ startFlow(l, false); //to allocate credit (but not update local widnow counter) >+ received(message); //to potentially issue message.complete > } > return getImpl(message, Duration::IMMEDIATE); > } >diff -rup _qpid-0.18-orig/cpp/src/qpid/client/amqp0_10/ReceiverImpl.h _qpid-0.18-new/cpp/src/qpid/client/amqp0_10/ReceiverImpl.h >--- _qpid-0.18-orig/cpp/src/qpid/client/amqp0_10/ReceiverImpl.h 2013-02-19 13:53:07.549956391 +0100 >+++ _qpid-0.18-new/cpp/src/qpid/client/amqp0_10/ReceiverImpl.h 2013-02-22 08:08:47.989706545 +0100 >@@ -80,7 +80,7 @@ class ReceiverImpl : public qpid::messag > qpid::client::AsyncSession session; > uint32_t window; > >- void startFlow(const sys::Mutex::ScopedLock&); // Dummy param, call with lock held >+ void startFlow(const sys::Mutex::ScopedLock&, bool setWindow = true); // Lock is a dummy param, call with lock held > //implementation of public facing methods > bool fetchImpl(qpid::messaging::Message& message, qpid::messaging::Duration timeout); > bool getImpl(qpid::messaging::Message& message, qpid::messaging::Duration timeout);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 913448
:
700414
| 701038