|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2010-10-13 01:18 UTC] pierrick@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 01 06:00:02 2025 UTC |
Description: ------------ When setting the read timeout in version 1.0.2 of the package with the values setReadTimeout(0, 200000) (200000 usecs = 0.2 seconds), the read timeout is measured to be 30 seconds, so the same as set with setReadTimeout(0). Version 1.0.0 of the package did not show this behaviour. I've tested this by: - Noting that the application I wrote did not respond - Downgrading the package to 1.0.0 - Noting that the application responded a lot faster - Upgrading to 1.0.2 again - Noting that the application took much longer to read from the queue than with version 1.0.0 of the package. Reproduce code: --------------- $then = gettimeofday(true); $broker = new Stomp('tcp://localhost:61613'); $broker->setReadTimeout(0, 200000); $broker->subscribe('/queue/test'); $broker->readFrame(); $now = gettimeofday(true); echo $now - $then; Expected result: ---------------- 0.20504379272461 (or something close to it) Actual result: -------------- 200.00514507294