Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
nginx-push-stream-module
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
nginx-push-stream-module
Commits
882cffb4
Commit
882cffb4
authored
Mar 30, 2011
by
Rogério Carvalho Schneider
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixing client_body_temp for testing
parent
f1a9309b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
base_test_case.rb
test/base_test_case.rb
+3
-0
No files found.
test/base_test_case.rb
View file @
882cffb4
...
@@ -87,6 +87,7 @@ module BaseTestCase
...
@@ -87,6 +87,7 @@ module BaseTestCase
def
create_dirs
def
create_dirs
FileUtils
.
mkdir
(
'tmp'
)
unless
File
.
exist?
(
'tmp'
)
and
File
.
directory?
(
'tmp'
)
FileUtils
.
mkdir
(
'tmp'
)
unless
File
.
exist?
(
'tmp'
)
and
File
.
directory?
(
'tmp'
)
FileUtils
.
mkdir
(
'tmp/client_body_temp'
)
unless
File
.
exist?
(
'tmp/client_body_temp'
)
and
File
.
directory?
(
'tmp/client_body_temp'
)
FileUtils
.
mkdir
(
'logs'
)
unless
File
.
exist?
(
'logs'
)
and
File
.
directory?
(
'logs'
)
FileUtils
.
mkdir
(
'logs'
)
unless
File
.
exist?
(
'logs'
)
and
File
.
directory?
(
'logs'
)
end
end
...
@@ -95,6 +96,7 @@ module BaseTestCase
...
@@ -95,6 +96,7 @@ module BaseTestCase
end
end
def
config_log_and_pid_file
def
config_log_and_pid_file
@client_body_temp
=
File
.
expand_path
(
"tmp/client_body_temp"
)
@pid_file
=
File
.
expand_path
(
"logs/nginx.pid"
)
@pid_file
=
File
.
expand_path
(
"logs/nginx.pid"
)
@main_error_log
=
File
.
expand_path
(
"logs/nginx-main_error-
#{
test_method_name
}
.log"
)
@main_error_log
=
File
.
expand_path
(
"logs/nginx-main_error-
#{
test_method_name
}
.log"
)
@access_log
=
File
.
expand_path
(
"logs/nginx-http_access-
#{
test_method_name
}
.log"
)
@access_log
=
File
.
expand_path
(
"logs/nginx-http_access-
#{
test_method_name
}
.log"
)
...
@@ -207,6 +209,7 @@ http {
...
@@ -207,6 +209,7 @@ http {
client_body_buffer_size 1k;
client_body_buffer_size 1k;
ignore_invalid_headers on;
ignore_invalid_headers on;
client_body_in_single_buffer on;
client_body_in_single_buffer on;
client_body_temp_path <%= @client_body_temp %>;
<%= "push_stream_max_reserved_memory #{@max_reserved_memory};" unless @max_reserved_memory.nil? %>
<%= "push_stream_max_reserved_memory #{@max_reserved_memory};" unless @max_reserved_memory.nil? %>
server {
server {
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment