mastodon.zunda.ninja is one of the many independent Mastodon servers you can use to participate in the fediverse.
Zundon is a single user instance as home of @zundan as well as a test bed for changes of the code.

Administered by:

Server stats:

1
active users

zunda

One-off dynoで
$ puma -C config/puma.rb &
して
$ curl -H 'X-Forwarded-Proto: https' -H 'Accept-Encoding: gzip' http://localhost:$PORT/about/
するとruby-2.6.0-preview1のアプリだと空の返事しか返ってこない。Accept-Encodingを消すと期待通りの返事が返ってくる。

@zundan 動かすだけであれば

$ echo "Rails.application.config.middleware.delete Rack::Deflater" > ./config/initializers/deflater.rb

で大丈夫ですね。

@ykzts なるほど!ありがとうございます。まずはそこからですねー。

@zundan github.com/ykzts-sandbox/rails rails newしてからの最小再現手順はこれですね。config.ruでuse Rack::Deflaterを使った場合は発生しなかったのでRailsとの相性が悪いようです。

ちなみにRuby 2.6.0-preview1では github.com/Shopify/bootsnap/is もあるのでbootsnapをrequireしている箇所をコメントアウトする必要がありそうです。

github.comAdd `config.middleware.use Rack::Deflater` · ykzts-sandbox/rails-using-rack-deflater@3feb813GitHub is where people build software. More than 27 million people use GitHub to discover, fork, and contribute to over 80 million projects.

@ykzts なるほどなるほど!

Macでrails newしたアプリを走らせようとしたらSEGVをもらったのはbootsnapの件かもですね。あとでバックトレースを見直してみます。Herokuで落ちないのはパッチの当たった版が来てるのかな…?

Rack::Deflaterのどこの相性が悪いのか見つけられるといいのですがはてさて。

ありがとうございました~!