[jira] [Commented] (PROTON-825) BlockingReceiver.receive() uses 100% CPU.

2015-03-03 Thread ASF subversion and git services (JIRA)

[ 
https://issues.apache.org/jira/browse/PROTON-825?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14345374#comment-14345374
 ] 

ASF subversion and git services commented on PROTON-825:


Commit 0485179476fba82414cc1d7871fd939a985a6ecd in qpid-proton's branch 
refs/heads/master from [~gsim]
[ https://git-wip-us.apache.org/repos/asf?p=qpid-proton.git;h=0485179 ]

PROTON-825: fix blocking receive (also modified blocking helloworld example to 
use this)


> 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
> Fix For: 0.9
>
>
> 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)


[jira] [Commented] (PROTON-825) BlockingReceiver.receive() uses 100% CPU.

2015-02-24 Thread ASF subversion and git services (JIRA)

[ 
https://issues.apache.org/jira/browse/PROTON-825?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14334912#comment-14334912
 ] 

ASF subversion and git services commented on PROTON-825:


Commit 2f854430c1490aaaf7e5a9545921a42b8454cf68 in qpid-proton's branch 
refs/heads/master from [~aconway]
[ https://git-wip-us.apache.org/repos/asf?p=qpid-proton.git;h=2f85443 ]

PROTON-825: SyncRequestResponse should yield in on_message.

This is the replacement fix for the reverted commit:
1455f32 PROTON-825: Reactor should yield before quiescing.

Instead of changing the reactor process() logic, we call pn_reactor_yield
from on_message in the SyncRequestResponse handler.


> 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
> Fix For: 0.9
>
>
> 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)


[jira] [Commented] (PROTON-825) BlockingReceiver.receive() uses 100% CPU.

2015-02-24 Thread ASF subversion and git services (JIRA)

[ 
https://issues.apache.org/jira/browse/PROTON-825?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14334910#comment-14334910
 ] 

ASF subversion and git services commented on PROTON-825:


Commit 14bdfbe045f036c99cb5d9fb3a6117fc1b1dd863 in qpid-proton's branch 
refs/heads/master from [~aconway]
[ https://git-wip-us.apache.org/repos/asf?p=qpid-proton.git;h=14bdfbe ]

Revert "PROTON-825: Reactor should yield before quiescing."

This reverts commit 1455f32575921ac8ed90cce539273233058f2b70.

There is no need to put this logic in the reactor process loop, instead
an application that needs the reactor to yield the thread can call
pn_reactor_yield. New fix for SyncRequestResponse will follow.


> 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
> Fix For: 0.9
>
>
> 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)


[jira] [Commented] (PROTON-825) BlockingReceiver.receive() uses 100% CPU.

2015-02-24 Thread ASF subversion and git services (JIRA)

[ 
https://issues.apache.org/jira/browse/PROTON-825?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14334911#comment-14334911
 ] 

ASF subversion and git services commented on PROTON-825:


Commit 2f854430c1490aaaf7e5a9545921a42b8454cf68 in qpid-proton's branch 
refs/heads/master from [~aconway]
[ https://git-wip-us.apache.org/repos/asf?p=qpid-proton.git;h=2f85443 ]

PROTON-825: SyncRequestResponse should yield in on_message.

This is the replacement fix for the reverted commit:
1455f32 PROTON-825: Reactor should yield before quiescing.

Instead of changing the reactor process() logic, we call pn_reactor_yield
from on_message in the SyncRequestResponse handler.


> 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
> Fix For: 0.9
>
>
> 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)


[jira] [Commented] (PROTON-825) BlockingReceiver.receive() uses 100% CPU.

2015-02-23 Thread ASF subversion and git services (JIRA)

[ 
https://issues.apache.org/jira/browse/PROTON-825?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14334012#comment-14334012
 ] 

ASF subversion and git services commented on PROTON-825:


Commit c6d1c8a7a54f6bbeb1f6f81375d71e73e42f5999 in qpid-proton's branch 
refs/heads/master from [~chug]
[ https://git-wip-us.apache.org/repos/asf?p=qpid-proton.git;h=c6d1c8a ]

PROTON-825: repair broken Windows VS2008 build


> 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
> Fix For: 0.9
>
>
> 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)


[jira] [Commented] (PROTON-825) BlockingReceiver.receive() uses 100% CPU.

2015-02-23 Thread ASF subversion and git services (JIRA)

[ 
https://issues.apache.org/jira/browse/PROTON-825?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14333981#comment-14333981
 ] 

ASF subversion and git services commented on PROTON-825:


Commit 92d049935fe0c9eb2ccc8430414c05ec12eefe94 in qpid-proton's branch 
refs/heads/master from [~aconway]
[ https://git-wip-us.apache.org/repos/asf?p=qpid-proton.git;h=92d0499 ]

PROTON-825: BlockingReceiver.receive() does not respect it's timeout.


> 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
> Fix For: 0.9
>
>
> 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)


[jira] [Commented] (PROTON-825) BlockingReceiver.receive() uses 100% CPU.

2015-02-23 Thread ASF subversion and git services (JIRA)

[ 
https://issues.apache.org/jira/browse/PROTON-825?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14333835#comment-14333835
 ] 

ASF subversion and git services commented on PROTON-825:


Commit 1455f32575921ac8ed90cce539273233058f2b70 in qpid-proton's branch 
refs/heads/master from [~aconway]
[ https://git-wip-us.apache.org/repos/asf?p=qpid-proton.git;h=1455f32 ]

PROTON-825: Reactor should yield before quiescing.

The reactor needs to yield before quiescing so that the applications processing 
loop
can handle the effects of any events processed so far before the reactor blocks
for more.


> 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
> Fix For: 0.9
>
>
> 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)


[jira] [Commented] (PROTON-825) BlockingReceiver.receive() uses 100% CPU.

2015-02-23 Thread ASF subversion and git services (JIRA)

[ 
https://issues.apache.org/jira/browse/PROTON-825?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14333545#comment-14333545
 ] 

ASF subversion and git services commented on PROTON-825:


Commit 20d574bc95c2d69c02ab58435e52fa52559fcb5b in qpid-proton's branch 
refs/heads/master from [~aconway]
[ https://git-wip-us.apache.org/repos/asf?p=qpid-proton.git;h=20d574b ]

PROTON-825: BlockingReceiver.receive() uses 100% CPU.

Missing in previous fix: convert timeout=None to max timeout for reactor.


> 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
> Fix For: 0.9
>
>
> 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)


[jira] [Commented] (PROTON-825) BlockingReceiver.receive() uses 100% CPU.

2015-02-23 Thread ASF subversion and git services (JIRA)

[ 
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)