Archived

This forum has been archived. Please start a new discussion on GitHub.

IceStorm hangs

I've got a simple publish/subscribe example running. The publisher publishes some info every second, the subscriber reads the info successfully. The qos is oneway. The subscriber is on a windows pc and the publisher and IceStorm are on a linux box.

If I quit the subscriber, IceStorm seems to realize the subscriber is gone, but then it just hangs. This also hangs the publisher. Eventually it times out the publisher connection.

I saw a forum thread that suggested setting the Ice.Override.Timeout which I've tried. That works, but is there a way to have IceStorm just remove the subscriber without having to set a timeout? Any idea why IceStorm hangs when the timeout isn't set?

This is the network trace for a session with no timeout. 10.1.21.52:4644 is
the subscriber. 10.1.5.30:51666 is the publisher.


[ icebox-IceStorm: Topic: Subscribe: a07a6c4c-6b3c-4da2-ad20-0090451742ea ]
[ icebox-IceStorm: Topic: Subscribe: 6e0f7964-f220-479f-9570-52cb51dd34a7 ]
[ icebox-IceStorm: Network: tcp connection established
local address = 10.1.5.30:51668
remote address = 10.1.21.52:4640 ]
icebox-IceStorm: warning: connection exception:
TcpTransceiver.cpp:285: Ice::ConnectionLostException:
connection lost: Connection reset by peer
local address = 10.1.5.30:51668
remote address = 10.1.21.52:4640
[ icebox-IceStorm: Network: closing tcp connection
local address = 10.1.5.30:51668
remote address = 10.1.21.52:4640 ]
icebox-IceStorm: warning: connection exception:
TcpTransceiver.cpp:285: Ice::ConnectionLostException:
connection lost: Connection reset by peer
local address = 10.1.5.30:15005
remote address = 10.1.21.52:4644
[ icebox-IceStorm: Network: closing tcp connection
local address = 10.1.5.30:15005
remote address = 10.1.21.52:4644 ]

... says it's closing connection to subscriber, a little later

[ icebox-IceStorm: Network: closing tcp connection
local address = 10.1.5.30:15005
remote address = 10.1.5.30:51666 ]
[ icebox-IceStorm: Subscriber: a07a6c4c-6b3c-4da2-ad20-0090451742ea: publish failed: Network.cpp:675: Ice::ConnectFailedException:
connect failed: Connection timed out ]

closes connection to publisher since it's been hung by the subscriber
going away.

Comments

  • benoit
    benoit Rennes, France
    Hi and welcome to the forums! Before we can answer your question, can you please set your signature as described in this [thread=1697]thread[/thread]?

    Thanks,

    Benoit.