Closed GoogleCodeExporter closed 8 years ago
sendMessageFromSocket() should not take a waitFevalable, like
waitForMessageAtSocket(), because sendMessageFromSocket() should never be
expected to consume messages or carry out behaviors. It should always be able
to return before a message is acted on by the recipient.
So waiting for ACK and resending should be optional. When client and server
mode are both true ACK behavior would be unnecessary because there would be no
physical network. So it's OK if that single-threaded behavior would also be
difficult to implement. The option can be a mustACK argument, and this is a
reasonable, non-detailed hint for a messenger class to take.
This behavior is different from waitForMessageAtSocket(), which really does
need a waitFevalable in order to carry out concurrent server-side behaviors
during a blocking client-side function call.
Original comment by Benjamin.Heasly
on 2 Oct 2010 at 10:41
As of r421 this is implemented as written: ACK and retry behavior are part of
dotsTheMessenger.
Also required a socket reset (without closing the socket) to refresh internal
accounting of message serial numbers.
Original comment by Benjamin.Heasly
on 8 Oct 2010 at 10:01
Original issue reported on code.google.com by
Benjamin.Heasly
on 2 Oct 2010 at 9:54