activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cronos <vicker...@googlemail.com>
Subject Re: Client Disconnection Bug?
Date Thu, 26 Jul 2007 15:53:04 GMT

Looking at the readFrame function in stomp.php, it seems this function
returns NULL
when there is no message in the queue. So, I modified my code as follows:

<? 
include_once("stomp.php"); 

$c = new StompConnection("localhost","51516"); 
$c->connect(); 
$c->subscribe("/queue/foo"); 
    
$result = $c->readFrame(); 
 
If($result == null) { 

$c->disconnect(); 

       {       
?> 

No luck. Still cannot get the client to DISCONNECT when there is no message
in the queue.

-- 
View this message in context: http://www.nabble.com/Client-Disconnection-Bug--tf4149361s2354.html#a11813408
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Mime
View raw message