Skip to content

Commit

Permalink
Improve handling of large query params
Browse files Browse the repository at this point in the history
  • Loading branch information
polyaxon-ci committed Oct 22, 2024
1 parent 7bbf992 commit 4195350
Show file tree
Hide file tree
Showing 4 changed files with 50 additions and 0 deletions.
5 changes: 5 additions & 0 deletions haupt/haupt/proxies/schemas/buffering.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@
client_max_body_size 0;
client_body_buffer_size 50m;
client_body_in_file_only clean;
large_client_header_buffers 8 1m;
client_header_buffer_size 1m;
uwsgi_buffer_size 1m;
uwsgi_buffers 8 1m;
uwsgi_busy_buffers_size 2m;
sendfile on;
"""

Expand Down
10 changes: 10 additions & 0 deletions haupt/tests/test_proxies/test_api/test_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@ def test_api_base_config(self):
client_max_body_size 0;
client_body_buffer_size 50m;
client_body_in_file_only clean;
large_client_header_buffers 8 1m;
client_header_buffer_size 1m;
uwsgi_buffer_size 1m;
uwsgi_buffers 8 1m;
uwsgi_busy_buffers_size 2m;
sendfile on;
Expand Down Expand Up @@ -160,6 +165,11 @@ def test_api_base_config_with_cdn_and_admin(self):
client_max_body_size 0;
client_body_buffer_size 50m;
client_body_in_file_only clean;
large_client_header_buffers 8 1m;
client_header_buffer_size 1m;
uwsgi_buffer_size 1m;
uwsgi_buffers 8 1m;
uwsgi_busy_buffers_size 2m;
sendfile on;
Expand Down
20 changes: 20 additions & 0 deletions haupt/tests/test_proxies/test_gateway/test_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@ def test_gateway_base_config(self):
client_max_body_size 0;
client_body_buffer_size 50m;
client_body_in_file_only clean;
large_client_header_buffers 8 1m;
client_header_buffer_size 1m;
uwsgi_buffer_size 1m;
uwsgi_buffers 8 1m;
uwsgi_busy_buffers_size 2m;
sendfile on;
Expand Down Expand Up @@ -277,6 +282,11 @@ def test_gateway_base_config_with_auth_and_dns(self):
client_max_body_size 0;
client_body_buffer_size 50m;
client_body_in_file_only clean;
large_client_header_buffers 8 1m;
client_header_buffer_size 1m;
uwsgi_buffer_size 1m;
uwsgi_buffers 8 1m;
uwsgi_busy_buffers_size 2m;
sendfile on;
Expand Down Expand Up @@ -581,6 +591,11 @@ def test_platform_base_config(self):
client_max_body_size 0;
client_body_buffer_size 50m;
client_body_in_file_only clean;
large_client_header_buffers 8 1m;
client_header_buffer_size 1m;
uwsgi_buffer_size 1m;
uwsgi_buffers 8 1m;
uwsgi_busy_buffers_size 2m;
sendfile on;
Expand Down Expand Up @@ -890,6 +905,11 @@ def test_platform_base_config_with_auth_and_dns(self):
client_max_body_size 0;
client_body_buffer_size 50m;
client_body_in_file_only clean;
large_client_header_buffers 8 1m;
client_header_buffer_size 1m;
uwsgi_buffer_size 1m;
uwsgi_buffers 8 1m;
uwsgi_busy_buffers_size 2m;
sendfile on;
Expand Down
15 changes: 15 additions & 0 deletions haupt/tests/test_proxies/test_streams/test_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@ def test_streams_base_config(self):
client_max_body_size 0;
client_body_buffer_size 50m;
client_body_in_file_only clean;
large_client_header_buffers 8 1m;
client_header_buffer_size 1m;
uwsgi_buffer_size 1m;
uwsgi_buffers 8 1m;
uwsgi_busy_buffers_size 2m;
sendfile on;
Expand Down Expand Up @@ -132,6 +137,11 @@ def test_streams_base_config_with_gateway(self):
client_max_body_size 0;
client_body_buffer_size 50m;
client_body_in_file_only clean;
large_client_header_buffers 8 1m;
client_header_buffer_size 1m;
uwsgi_buffer_size 1m;
uwsgi_buffers 8 1m;
uwsgi_busy_buffers_size 2m;
sendfile on;
Expand Down Expand Up @@ -437,6 +447,11 @@ def test_streams_base_config_with_gateway_dns_auth(self):
client_max_body_size 0;
client_body_buffer_size 50m;
client_body_in_file_only clean;
large_client_header_buffers 8 1m;
client_header_buffer_size 1m;
uwsgi_buffer_size 1m;
uwsgi_buffers 8 1m;
uwsgi_busy_buffers_size 2m;
sendfile on;
Expand Down

0 comments on commit 4195350

Please sign in to comment.