Skip to content

HTTP element HEADER is longer than the (1024 * (80 + 32)) allowed length #179

@betelgeuse

Description

@betelgeuse

Trying puma on my rails 3.1.8 app I get:

$ ./script/rails s puma -b localhost
=> Booting Puma
=> Rails 3.1.8 application starting in development on http://localhost:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
Puma 2.0.0.b4 starting...
* Min threads: 0, max threads: 16
* Environment: development
* Listening on tcp://localhost:3000
2012-12-30 18:55:51 +0200: HTTP parse error, malformed request (): #<Puma::HttpParserError: HTTP element HEADER is longer than the (1024 * (80 + 32)) allowed length.>
2012-12-30 18:55:51 +0200: ENV: {"rack.version"=>[1, 1], "rack.errors"=>#<IO:<STDERR>>, "rack.multithread"=>true, "rack.multiprocess"=>false, "rack.run_once"=>true, "SCRIPT_NAME"=>"", "CONTENT_TYPE"=>"text/plain", "QUERY_STRING"=>"", "SERVER_PROTOCOL"=>"HTTP/1.1", "SERVER_SOFTWARE"=>"2.0.0.b4", "GATEWAY_INTERFACE"=>"CGI/1.2"}

The request is just a simple request with curl so the headers shouldn't be too long:

$ curl -vi http://localhost:3000
* About to connect() to localhost port 3000 (#0)
*   Trying 127.0.0.1...
* connected
* Connected to localhost (127.0.0.1) port 3000 (#0)
> GET / HTTP/1.1
> User-Agent: curl/7.28.1
> Host: localhost:3000
> Accept: */*
> 
< HTTP/1.1 400 Bad Request
HTTP/1.1 400 Bad Request
* no chunk, no close, no size. Assume close to signal end

< 
* Closing connection #0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions