bluestatedigital/php-amqplib — pull request #1 by jbarciauskas (2012-01-31 22:42:39+00:00)
Title: Add timeout to BufferedInput

In order to support short timeouts on live messages being sent by, for instance, a web request, time how long it's been since we received data from the broker, and close the connect and throw an exception if we do not receive any data for the amount of time specified. Since we're using microtime(true), we accept floats for this timeout value (in particular so we can limit the delay experienced by the request to less than a second)