stomp+activemq+perl+cannot sysread(): EOF -


i have simple stomp script connect activemq , when run script below error "cannot sysread(): eof"

perl script code:

#!/usr/bin/perl use net::stomp::client; $stomp = net::stomp::client->new(uri => "stomp://hostname:61616"); $peer = $stomp->peer(); printf("connected broker %s (ip %s), port %d\n", $peer->host(), $peer->addr(), $peer->port()); $stomp->connect(); printf("speaking stomp %s server %s\n", $stomp->version(), $stomp->server() || "unknown"); printf("session %s started\n", $stomp->session()); $stomp->disconnect(); printf("session ended\n"); 

could please let me know doing wrong ? saw similar post didnt see response regarding same. issue @ $stomp->connect();

debug you

use net::stomp::client; $stomp = net::stomp::client->new(                                 uri => "stomp://hostname:61616",                                 debug => "connection api"                                 ); 

Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -