activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From # Lalit Nagpal # <>
Subject Sockets not connecting ... Invalid handle returned
Date Wed, 06 Sep 2006 10:16:05 GMT

The following piece of code in the class SocketFactory.cpp is throwing
exceptions ....
        BufferedSocket* socket = new BufferedSocket(tcpSocket,
inputBufferSize, outputBufferSize);
        socket->connect( host.c_str(), port );

it returns an invalid handle actually. I can see the call coming in twice to
this piece of code (producer and then the consumer ... both are threaded and
do a join inside the main method). The second time the call comes in it

Cant understand why this is happening ... any ideas on what could be the
I tried changing the port to 61614 for the broker and the code in the client
too ... did not work still ... same probs.

Any hint would be really useful.
View this message in context:
Sent from the ActiveMQ - User forum at

View raw message