ysbaddaden / prax

Rack proxy server for development
http://ysbaddaden.github.io/prax/
Other
475 stars 49 forks source link

Cant upload file greater than 100kb #109

Open westonganger opened 9 years ago

westonganger commented 9 years ago

I get routing errors when trying to upload a file greater than 100kb.

The problem doesnt exist when running webrick using "rails server"

ysbaddaden commented 9 years ago

I had some problems too with file uploads. Some files will always fail, while others are fine.

It may have something to do with Racker. I don't recall having problems with port-forwarding to a vagrant box.

lasseebert commented 9 years ago

I had the same experience. On some files upload fails using prax, but succeeds using unicorn.

I get a Rack error, which looks like this bug: https://github.com/rack/rack/issues/676, but I'm currently stuck at rack ~> 1.4.5 and have not tested with 1.6.0 yet.

I have not noticed a pattern for which files will fail to upload with prax.

Top of stacktrace:

EOFError (bad content body):
  rack (1.4.5) lib/rack/multipart/parser.rb:74:in `block in fast_forward_to_first_boundary'
  rack (1.4.5) lib/rack/multipart/parser.rb:72:in `loop'
  rack (1.4.5) lib/rack/multipart/parser.rb:72:in `fast_forward_to_first_boundary'
  rack (1.4.5) lib/rack/multipart/parser.rb:15:in `parse'
  rack (1.4.5) lib/rack/multipart.rb:25:in `parse_multipart'
  rack (1.4.5) lib/rack/request.rb:336:in `parse_multipart'
  rack (1.4.5) lib/rack/request.rb:201:in `POST'
ghost commented 8 years ago

Look at this: https://github.com/basecamp/pow/commit/d3f48362713c70bbc1d9452a8b0be9c99214496f