Closed GoogleCodeExporter closed 9 years ago
Turns out this is a plain old-fashioned thinko: AMPQConnection::__construct
takes $read_write_timeout but
passes $rw_timeout. See patch.
Original comment by angrybal...@gmail.com
on 8 Sep 2009 at 8:22
Attachments:
As for reading single bytes via fread, this patch adds a simple-minded
buffering layer to AMQPReader.
Original comment by angrybal...@gmail.com
on 8 Sep 2009 at 8:25
Attachments:
I noticed the amqp_consumer.php takes 100% cpu while waiting for commands. The
problem
is in AMQPReader::rawread that loop like crazy to read 1 byte. In the while
loop I
added a usleep(100) and it drop the CPU usage to around 50% while maintaining
good
performance.
Original comment by benoit.a...@gmail.com
on 14 Sep 2009 at 3:34
Attachments:
100% CPU is a side effect of the bug my first patch (issue-6.patch) above
fixes. With that sorted out, the number
of calls to fread drops dramatically, reducing CPU load even without sleeps or
buffering.
Original comment by angrybal...@gmail.com
on 14 Sep 2009 at 10:58
Oh much better patch!
Thanks!
Original comment by benoit.a...@gmail.com
on 18 Sep 2009 at 1:32
patches are applied
Original comment by lyolik1...@gmail.com
on 27 Jan 2010 at 9:11
Original issue reported on code.google.com by
angrybal...@gmail.com
on 8 Sep 2009 at 8:18