[rabbitmq-discuss] RPC Client side timeout
Ben Hood
0x6e6562 at gmail.com
Tue Dec 11 22:28:43 GMT 2007
Hi,
To get around situations where an RPC handler dies completely and this
wasn't recovered on the server side, I applied the following patch to
the Java to allow it time out when invoking an RPC.
HTH,
Ben
Begin forwarded message:
> From: Ben Hood <0x6e6562 at gmail.com>
> Date: 5 December 2007 07:31:21 GMT
> To: rabbitmq-discuss at lists.rabbitmq.com
> Subject: RPC Client side timeout
>
> Hi,
>
> I was wondering what the best way is to do a client side time out
> when waiting for the bottom half of an RPC.
>
> When you send the top half you can specify an expiration property,
> but I can't see how this gets processed on the server side (from
> looking at the processing code). Furthermore this is a string value
> and I haven't seen an example of it or an explanation in the spec.
>
> On the client, one easy to way to do this would be just to add a
> get() method on the blocking cell that passes in a timeout value,
> but I'm not sure what should happen once it times out. Should the
> consume be cancelled or should an appropriate property be set during
> the initialization of the consume that indicates to the server that
> it should clean unattended queues up after a while?
>
> Thx,
>
> Ben
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20071211/88665132/attachment.htm
-------------- next part --------------
A non-text attachment was scrubbed...
Name: blocking_timeout.patch
Type: application/applefile
Size: 82 bytes
Desc: not available
Url : http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20071211/88665132/attachment.bin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20071211/88665132/attachment-0001.htm
More information about the rabbitmq-discuss
mailing list