增加喷雾罐的最大长度

时间:2016-07-27 19:44:06

标签: scala spray spray-can

根据文档进行更改。最大uri-length仍然是2048.请在下面找到我的配置。

我已根据此链接http://spray.io/documentation/1.1.2/spray-can/configuration/

进行了更改
spray.can {
  server {
    pipelining-limit = 20
    reaping-cycle = infinite
    request-chunk-aggregation-limit = 0
    stats-support = off
    remote-address-header = on
    request-timeout = 2000 s
    idle-timeout = 3000 s
    automatic-back-pressure-handling = on
    parsing {
      max-uri-length             = 4k
      max-response-reason-length = 64
      max-header-name-length     = 64
      max-header-value-length    = 8k
      max-header-count           = 64
      max-content-length         = 512m
      max-chunk-ext-length       = 512
      max-chunk-size             = 4m
      illegal-header-warnings    = off
    }
  }
  client {
    max-connections = 150
    max-retries = 5
    response-chunk-aggregation-limit = 1m
    parsing {
      max-uri-length             = 4k
      max-response-reason-length = 64
      max-header-name-length     = 64
      max-header-value-length    = 8k
      max-header-count           = 64
      max-content-length         = 512m
      max-chunk-ext-length       = 512
      max-chunk-size             = 4m
      illegal-header-warnings    = off
    }
  }
  parsing {
    uri-parsing-mode = relaxed
    max-uri-length             = 4k
    max-response-reason-length = 64
    max-header-name-length     = 64
    max-header-value-length    = 8k
    max-header-count           = 64
    max-content-length         = 512m
    max-chunk-ext-length       = 512
    max-chunk-size             = 4m
    illegal-header-warnings    = off
  }
}

请有人帮助我。提前谢谢。

0 个答案:

没有答案