Re: Hacking in an SLA for proxied requests in mod_proxy_http

2009-07-15 Thread Neal Richter
Brian Akins wrote: > Is the proxy-timeout for the entire request to be returned, the first byte, > or just an i/o timeout? To set a 900ms timeout the code does approximately this: apr_interval_time_t new_timeout = apr_time_make(0, 900 * (APR_USEC_PER_SEC/1000)); apr_socket_timeout_set(backend->so

Re: Hacking in an SLA for proxied requests in mod_proxy_http

2009-07-15 Thread Akins, Brian
I haven't looked at the code, but +1 for the idea. We had a hack that did something somewhat similar, but it was gross and in 2.0 - we never used it in prod. Is the proxy-timeout for the entire request to be returned, the first byte, or just an i/o timeout? -- Brian Akins

Hacking in an SLA for proxied requests in mod_proxy_http

2009-07-14 Thread Neal Richter
Hey all, I wanted to enforce an SLA on certain http requests to apache. Essentially provide a the external client users an guarantee that a valid response will be given within XXms and all errors are suppressed. This is for an ReST API that returns JSON or XML data. Ronald Park attempted to do s