Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to specify a timeout for a dav method (PUT) #49

Open
GabrielGhe opened this issue Nov 5, 2019 · 0 comments
Open

How to specify a timeout for a dav method (PUT) #49

GabrielGhe opened this issue Nov 5, 2019 · 0 comments

Comments

@GabrielGhe
Copy link

GabrielGhe commented Nov 5, 2019

I have an Nginx instance that I use as a Bazel cache with the config below. I'd like to set a low (4 second) timeout for the PUT (dav_methods) requests.

The config looks like:

http {
  ...
  # request timed out
  client_body_timeout 2;
  client_header_timeout 2;

  # server will close connection
  keepalive_timeout 5;

  send_timeout 1;

  gzip on;

  server {
    listen 80 default_server;
    server_name _;

    location ~ "<my regex>" {
      root <my dir>;
      dav_methods PUT;
      limit_except PUT GET { deny all; }
      create_full_put_path on;
    }
  }
}

GET methods timeout as expected, PUTS don't.
Any idea how to put a timeout the PUT method?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant