You are viewing a plain text version of this content. The canonical link for it is here.
Posted to proton@qpid.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2015/02/23 17:42:13 UTC
[jira] [Commented] (PROTON-825) BlockingReceiver.receive() uses
100% CPU.
[ https://issues.apache.org/jira/browse/PROTON-825?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14333485#comment-14333485 ]
ASF subversion and git services commented on PROTON-825:
--------------------------------------------------------
Commit 4244875ddd74f41d67f4fca11166fc6d43bc4d93 in qpid-proton's branch refs/heads/master from [~aconway]
[ https://git-wip-us.apache.org/repos/asf?p=qpid-proton.git;h=4244875 ]
PROTON-825: BlockingReceiver.receive() uses 100% CPU.
Fixed in BlockingConnection, by setting BlockingConnection's timeout on it's Container.
NOTE: Prior to this fix you can work around the problem as follows:
- self.connection = BlockingConnection(url, timeout=timeout)
+ container = proton.reactor.Container()
+ container.timeout = timeout
+ self.connection = BlockingConnection(url, timeout=timeout, container=container)
Timeout can be None to wait without limit until something is available.
> BlockingReceiver.receive() uses 100% CPU.
> -----------------------------------------
>
> Key: PROTON-825
> URL: https://issues.apache.org/jira/browse/PROTON-825
> Project: Qpid Proton
> Issue Type: Bug
> Components: python-binding
> Affects Versions: 0.9
> Environment: F20
> Built from master 2/19.
> Reporter: Jeff Ortel
> Assignee: Alan Conway
>
> Calling BlockingReceiver.receive(timeout=10) blocks the caller for 10 seconds but uses 100% CPU.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)