Tuyen Chau
2006-11-16 06:17:53 UTC
Why do "oneway" requests hang, instead of return an COM_FAILURE
exception, when the network is disconnected? As part of testing our
product, we unplugged the network cable. We were surprised to find that
these oneway requests executed without errors for a good 5-10 minutes or
so, then they blocked indefinitely. If we replaced the network cable,
the calls eventually unblocked and everything worked again. Our best
guess at the moment is that there is a data buffer for outgoing requests
and the oneway requests block when the buffer is full.
Is there any way to alter this behavior and receive a COM_FAILURE
exception instead?
Our oneway requests are being used as "callbacks" when the server needs
to send events to its clients to notify them of changes in the system.
Best Regards,
Tuyen
exception, when the network is disconnected? As part of testing our
product, we unplugged the network cable. We were surprised to find that
these oneway requests executed without errors for a good 5-10 minutes or
so, then they blocked indefinitely. If we replaced the network cable,
the calls eventually unblocked and everything worked again. Our best
guess at the moment is that there is a data buffer for outgoing requests
and the oneway requests block when the buffer is full.
Is there any way to alter this behavior and receive a COM_FAILURE
exception instead?
Our oneway requests are being used as "callbacks" when the server needs
to send events to its clients to notify them of changes in the system.
Best Regards,
Tuyen