Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 2 May 2013 01:54:54 GMT
From:      Matthias Petermann <matthias@petermann.it>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/178290: [patch] devel/py-pika update from 0.9.9 to 0.9.12 (fixes CPU 100% issue when listening for messages)
Message-ID:  <201305020154.r421ssZT026659@red.freebsd.org>
Resent-Message-ID: <201305020200.r42200Xh083595@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         178290
>Category:       ports
>Synopsis:       [patch] devel/py-pika update from 0.9.9 to 0.9.12 (fixes CPU 100% issue when listening for messages)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu May 02 02:00:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     Matthias Petermann
>Release:        9.1
>Organization:
>Environment:
>Description:
The attached patch updates py-pika. The existing version 0.9.9 has a known issue which leads to 100% CPU usage while waiting for messages to consume. In 0.9.12 this is fixed.
>How-To-Repeat:
#!/usr/bin/env python

import pika

connection = pika.BlockingConnection(pika.ConnectionParameters(
        host='localhost'))
channel = connection.channel()
channel.queue_declare(queue='benchmark', durable=True)
print 'Waiting for messages. To exit press CTRL+C'

def callback(ch, method, properties, body):
    print " [x] Received %r" % (len(body),)

channel.basic_consume(callback,queue='benchmark',no_ack=True)
channel.start_consuming()

>Fix:
Please apply the attached patch.

Patch attached with submission follows:

diff -ruN py-pika.orig/Makefile py-pika/Makefile
--- py-pika.orig/Makefile	2013-05-02 03:45:43.000000000 +0200
+++ py-pika/Makefile	2013-05-02 03:45:59.000000000 +0200
@@ -2,7 +2,7 @@
 # $FreeBSD: ports/devel/py-pika/Makefile,v 1.4 2013/01/31 07:43:55 svnexp Exp $
 
 PORTNAME=	pika
-PORTVERSION=	0.9.9
+PORTVERSION=	0.9.12
 CATEGORIES=	devel net
 MASTER_SITES=	CHEESESHOP
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
diff -ruN py-pika.orig/distinfo py-pika/distinfo
--- py-pika.orig/distinfo	2013-05-02 03:45:43.000000000 +0200
+++ py-pika/distinfo	2013-05-02 03:46:03.000000000 +0200
@@ -1,2 +1,2 @@
-SHA256 (pika-0.9.9.tar.gz) = 9f5313d1f9f34961f6b8199b0ee6053418955a3d337a0676bc8ce3b82f3b7d14
-SIZE (pika-0.9.9.tar.gz) = 56992
+SHA256 (pika-0.9.12.tar.gz) = 670787ee6ade47cadd1ec8220876b9b7ae4df7bc4b9dd1d808261a6b47e9ce5d
+SIZE (pika-0.9.12.tar.gz) = 61825


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201305020154.r421ssZT026659>