Skip to content

Commit

Permalink
Fixed buffer size spam.
Browse files Browse the repository at this point in the history
  • Loading branch information
kernelsauce committed Apr 10, 2015
1 parent 12c0eb8 commit b503abd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion turbo/httpserver.lua
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ function httpserver.HTTPConnection:_on_headers(data)
content_length = tonumber(content_length)
-- Set max buffer size to 128MB.
self.stream:set_max_buffer_size(
self.kwargs.max_body_size or content_length)
self.kwargs.max_body_size or math.max(content_length, 1024*18))
if content_length > self.stream.max_buffer_size then
log.error(
"[httpserver.lua] Content-Length too long \
Expand Down

0 comments on commit b503abd

Please sign in to comment.