Hi Chris This would do what I want, expcet the timeout client directive does not work within a backend block. :-(
I tried it just in case, and in the config you suggest it uses the default client timeout for all connections. Laurie On 19 April 2010 10:43, Chris Sarginson <[email protected]> wrote: > Laurie Young wrote: > >> >> But could not make this work, first because the hostname was not >> resolvable - but then only one fronted could bind. (is this because only >> one socket to port 80 can be opened) >> >> Then I tried something like >> frontend all >> bind :80 >> acl is_long hdr_dom(Host) -i longtimeout >> timeout client 5000 >> timeout client 86400000 if is_long >> >> but this also didn't seem to work (all connections had a timeout of 5000) >> > > If you set these up as seperate backends, you can specify the timeouts in > there, > > EG: > > > frontend all > bind :80 > acl is_long hdr_dom(Host) -i longtimeout > use_backend shorttimeout if !is_long > use_backend longtimeout if is_long > > > backend shorttimeout > timeout client 5000 > server srv1 srv1:80 > server srv2 srv2:80 > > backend longtimeout > timeout client 86400000 > server srv1 srv1:80 > server srv2 srv2:80 > > I think this should do what you need. > > Chris > -- Dr Laurie Young Scrum Master New Bamboo Follow me on twitter: @wildfalcon Follow us on twitter: @newbamboo Creating fresh, flexible and fast-growing web applications is our passion. 3rd Floor, Gensurco House, 46A Rosebery Avenue, London, EC1R 4RP http://www.new-bamboo.co.uk

