部署 unicorn 会在 http data 首尾添加额外字节

happyweb · May 07, 2014 · Last by happyweb replied at May 07, 2014 · 1907 hits

版本 unicorn 4.8.2

  • unicorn -c config/unicorn启动 用 curl --trace - 访问链接,可以看到在 recv data 开始部分,会多出 5 个字节
<= Recv header, 2 bytes (0x2)
0000: 0d 0a                                           ..
<= Recv data, 525 bytes (0x20d)
0000: 36 31 62 0d 0a 3c 21 44 4f 43 54 59 50 45 20 68 61b..<!DOCTYPE h
0010: 74 6d 6c 3e 0a 3c 68 74 6d 6c 3e 0a 3c 68 65 61 tml>.<html>.<hea
0020: 64 3e 0a 20 20 3c 74 69 74 6c 65 3e 4c 61 64 64 d>.  <title>Ladd
0030: 65 72 57 65 62 3c 2f 74 69 74 6c 65 3e 0a 20 20 erWeb</title>.
  • rails s 启动 用 curl --trace - 访问链接,数据正常

这是什么情况,有人遇到相同的问题吗?

You need to Sign in before reply, if you don't have an account, please Sign up first.