[LRUG] Making Rails time out

Andrew Stewart boss at airbladesoftware.com
Fri Apr 19 07:20:14 PDT 2013


On 19 Apr 2013, at 16:07, Rob Anderson wrote:
> One of the test cases we have come up with is what happens if our service just fails to respond at all - eg we accept the connection and then leave them hanging waiting for a response.  This should raise a client timeout and they should handle it appropriately.
> 
> But it s not at all clear how to achieve this in our test system.  I could put in some monster sleep command, but I don't really want to block the process - ideally I just want to tell ActionController: forget it, your work is done.

Are you asking about how to make the server hang or how to make the client give up after a certain time?

Yours,
Andy Stewart


More information about the Chat mailing list