Forum Discussion

Tory_Blue_92800's avatar
Tory_Blue_92800
Icon for Nimbostratus rankNimbostratus
Feb 26, 2010

Send back 200 after X amount of time

Sorry for the subject, not sure how to represent it correctly.

 

 

I'm wondering if it's possible based on connection to a specific vip with a specific URI, could I monitor the connection and if it took more than 1 second, we would send back a 200 an ok, or blank response. But the connection would be satisfied.

 

 

This is for testing purposes.

 

 

I have an odd issue where some connections (very very very random, very very very infrequently) will take 5 seconds and this could start blocking other content on a page. 99.9% of the time the connection is opened and fulfilled in milliseconds, but again, on occasion there is a 5 second delay.

 

 

I would like to satisfy the client request, even if it's not complete. I don't want to be the cause of blocking while I try to figure out where this 5 second delay is coming from.

 

 

Hope this makes some sense.

 

 

Thanks

 

Tory

1 Reply

  • Hi Tory,

     

     

    On 10.0+ you might be able to use the 'after' command (Click here) to send a response if the server response takes more than one second.

     

     

    Aaron