Bug 178290 - [patch] devel/py-pika update from 0.9.9 to 0.9.12 (fixes CPU 100% issue when listening for messages)
Summary: [patch] devel/py-pika update from 0.9.9 to 0.9.12 (fixes CPU 100% issue when ...
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: William Grzybowski
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-05-02 03:00 UTC by Matthias Petermann
Modified: 2013-05-20 17:10 UTC (History)
0 users

See Also:


Attachments
file.diff (856 bytes, patch)
2013-05-02 03:00 UTC, Matthias Petermann
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Matthias Petermann 2013-05-02 03:00:00 UTC
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.

Fix: Please apply the attached patch.

Patch attached with submission follows:
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()
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2013-05-02 03:00:08 UTC
Responsible Changed
From-To: freebsd-ports-bugs->clsung

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 William Grzybowski freebsd_committer freebsd_triage 2013-05-19 17:53:45 UTC
Responsible Changed
From-To: clsung->wg

I'll take it.
Comment 3 dfilter service freebsd_committer freebsd_triage 2013-05-20 17:06:51 UTC
Author: wg
Date: Mon May 20 16:06:42 2013
New Revision: 318611
URL: http://svnweb.freebsd.org/changeset/ports/318611

Log:
  - Update to 0.9.12
  
  Changes:
  https://github.com/pika/pika/blob/0.9.12/docs/version_history.rst
  
  PR:		ports/178290
  Submitted by:	Matthias Petermann <matthias@petermann.it>
  Approved by:	culot (mentor), maintainer (timeout, > 14 days)

Modified:
  head/devel/py-pika/Makefile
  head/devel/py-pika/distinfo

Modified: head/devel/py-pika/Makefile
==============================================================================
--- head/devel/py-pika/Makefile	Mon May 20 16:01:51 2013	(r318610)
+++ head/devel/py-pika/Makefile	Mon May 20 16:06:42 2013	(r318611)
@@ -2,7 +2,7 @@
 # $FreeBSD$
 
 PORTNAME=	pika
-PORTVERSION=	0.9.9
+PORTVERSION=	0.9.12
 CATEGORIES=	devel net
 MASTER_SITES=	CHEESESHOP
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}

Modified: head/devel/py-pika/distinfo
==============================================================================
--- head/devel/py-pika/distinfo	Mon May 20 16:01:51 2013	(r318610)
+++ head/devel/py-pika/distinfo	Mon May 20 16:06:42 2013	(r318611)
@@ -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
_______________________________________________
svn-ports-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-ports-all
To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
Comment 4 William Grzybowski freebsd_committer freebsd_triage 2013-05-20 17:07:21 UTC
State Changed
From-To: open->closed

Committed. Thanks!