spring cloud provider报“Error parsing HTTP request header”,feign端报“Read timed out“

这两天在调试spring cloud feign+hystrix报了如下错误:

spring cloud provider报“Error parsing HTTP request header”,feign端报“Read timed out“


provider报错信息:

2018-06-20 18:23:51,595 [http-nio-8086-exec-5] DEBUG org.apache.coyote.http11.Http11Processor:182 - Error parsing HTTP request header
java.io.EOFException: null
    at org.apache.tomcat.util.net.NioEndpoint$NioSocketWrapper.fillReadBuffer(NioEndpoint.java:1250)
    at org.apache.tomcat.util.net.NioEndpoint$NioSocketWrapper.read(NioEndpoint.java:1190)
    at org.apache.coyote.http11.Http11InputBuffer.fill(Http11InputBuffer.java:717)
    at org.apache.coyote.http11.Http11InputBuffer.parseRequestLine(Http11InputBuffer.java:366)
    at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:687)

 

feign报错信息:

Exception in thread "pool-10-thread-14" feign.RetryableException: Read timed out executing 

 

 

针对provider报错信息需要修改的配置如下:

server:
  port: 8087
  tomcat:
      max-http-header-size: 3145728    --这里

 

 

针对feign端报错信息需要调整的配置如下:

feign:
  client:
    default:
      #这里时间一定要调长,否则feign客户端会报ReadTimeOut  服务端报Error parsing HTTP request header
      connectTimeout: 60000
      readTimeout: 60000
      loggerLevel: basic

 

转载于:https://www.cnblogs.com/dbaxyx/p/9205378.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值