Issue 1:
I have searched the issues of this repository and believe that this is not a duplicate.

yes

I have checked the FAQ of this repository and believe that this is not a duplicate.

yes

Environment

Dubbo version: 2.6.2

Operating System version: centos6.2

Java version: jdk1.8.0_152

Steps to reproduce this issue

when upgrade from dubbo2.5.4 to dubbo2.6.2

use hessian:// with large payload

Pls. provide [GitHub address] to reproduce this issue.

Expected Result

What do you expected from the above steps？

return result success

Actual Result

What actually happens?

rpc error

If there is an exception, please attach the exception trace:

com.alibaba.dubbo.rpc.RpcException: Failed to invoke the method downloadBytes in the service com.warehouse.api.facade.WarehouseFacade. Tried 3 times of
the providers [10.143.5.4:57994, 10.143.5.6:57994, 10.143.5.5:57994] (3/3) from the registry dubbo-zk1.finance.qihoo.com:2181 on the consumer 10.143.5.53 using t
he dubbo version 2.6.2. Last error is: Failed to invoke remote service: interface com.warehouse.api.facade.WarehouseFacade, method: downloadBytes, ca
use: 413: java.io.IOException: Server returned HTTP response code: 413 for URL: http://10.143.5.6:57994/com.warehouse.api.facade.WarehouseFacade?Serve
rApplicationName=warehouse-app&anyhost=true&application=gws-app&check=false&default.check=false&default.delay=-1&default.payload=52428800&default.reference.filter=-e
xception&default.service.filter=-exception&default.timeout=5000&delay=-1&dubbo=2.5.4-RELEASE&generic=false&interface=com.warehouse.api.facade.Warehou
seFacade&methods=download,downloadBytes,downloadBytesBatch,upload,buildUrlForOpenFile,getPathForOpenFile,zipCompress,uploadBytes,zipCompressByPassword&organization=720&owner=720loan&payload=157286400&pid=22932&protocol=hessian&qos.enable=false&register.ip=10.143.5.53&remote.timestamp=1541681653305&revision=0.0.2-RELEASE&server=j
etty&side=consumer&timeout=2000&timestamp=1542291054639
at com.alibaba.dubbo.rpc.cluster.support.FailoverClusterInvoker.doInvoke(FailoverClusterInvoker.java:109) ~[dubbo-2.6.2.jar:2.6.2]
at com.alibaba.dubbo.rpc.cluster.support.AbstractClusterInvoker.invoke(AbstractClusterInvoker.java:238) ~[dubbo-2.6.2.jar:2.6.2]
at com.alibaba.dubbo.rpc.cluster.support.wrapper.MockClusterInvoker.invoke(MockClusterInvoker.java:75) ~[dubbo-2.6.2.jar:2.6.2]
at com.alibaba.dubbo.rpc.proxy.InvokerInvocationHandler.invoke(InvokerInvocationHandler.java:52) ~[dubbo-2.6.2.jar:2.6.2]
at com.alibaba.dubbo.common.bytecode.proxy23.downloadBytes(proxy23.java) ~[dubbo-2.6.2.jar:2.6.2]
at com.gws.common.warehouse.util.FileUploadUtils.downloadFileByWarehouse(FileUploadUtils.java:111) [gws-app-2.18.0-RELEASE.jar:?]
at com.gws.common.warehouse.util.FileUploadUtils.multiDownloadFile(FileUploadUtils.java:91) [gws-app-2.18.0-RELEASE.jar:?]
at com.gws.modules.face.FaceOcrFacadeImpl.faceOcrIdCard(FaceOcrFacadeImpl.java:50) [gws-app-2.18.0-RELEASE.jar:?]
at com.gws.modules.face.FaceOcrFacadeImpl.recognizeOcrIdcard(FaceOcrFacadeImpl.java:113) [gws-app-2.18.0-RELEASE.jar:?]
at com.alibaba.dubbo.common.bytecode.Wrapper38.invokeMethod(Wrapper38.java) [dubbo-2.6.2.jar:2.6.2]
at com.alibaba.dubbo.rpc.proxy.javassist.JavassistProxyFactory$1.doInvoke(JavassistProxyFactory.java:47) [dubbo-2.6.2.jar:2.6.2]
at com.alibaba.dubbo.rpc.proxy.AbstractProxyInvoker.invoke(AbstractProxyInvoker.java:76) [dubbo-2.6.2.jar:2.6.2]
at com.alibaba.dubbo.config.invoker.DelegateProviderMetaDataInvoker.invoke(DelegateProviderMetaDataInvoker.java:52) [dubbo-2.6.2.jar:2.6.2]
at com.alibaba.dubbo.rpc.protocol.InvokerWrapper.invoke(InvokerWrapper.java:56) [dubbo-2.6.2.jar:2.6.2]
at com.msf.core.dubbo.filter.ExceptionFilter.invoke(ExceptionFilter.java:30) [msf-core-2.8.6.2-RELEASE.jar:?]
at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:72) [dubbo-2.6.2.jar:2.6.2]
at com.alibaba.dubbo.rpc.filter.TimeoutFilter.invoke(TimeoutFilter.java:42) [dubbo-2.6.2.jar:2.6.2]
at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:72) [dubbo-2.6.2.jar:2.6.2]
at com.alibaba.dubbo.rpc.protocol.dubbo.filter.TraceFilter.invoke(TraceFilter.java:78) [dubbo-2.6.2.jar:2.6.2]
at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:72) [dubbo-2.6.2.jar:2.6.2]
at com.alibaba.dubbo.monitor.support.MonitorFilter.invoke(MonitorFilter.java:75) [dubbo-2.6.2.jar:2.6.2]
at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:72) [dubbo-2.6.2.jar:2.6.2]
at com.msf.app.filter.ProviderRejectServiceFilter.invoke(ProviderRejectServiceFilter.java:78) [msf-app-framework-2.8.6.2-RELEASE.jar:?]
at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:72) [dubbo-2.6.2.jar:2.6.2]
at com.msf.app.filter.MsfExecuteLimitFilter.invoke(MsfExecuteLimitFilter.java:60) [msf-app-framework-2.8.6.2-RELEASE.jar:?]
at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:72) [dubbo-2.6.2.jar:2.6.2]
at com.msf.core.dubbo.filter.MsfExceptionFilter.invoke(MsfExceptionFilter.java:31) [msf-core-2.8.6.2-RELEASE.jar:?]
at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:72) [dubbo-2.6.2.jar:2.6.2]
at com.msf.core.dubbo.filter.ProviderContextFilter.invoke(ProviderContextFilter.java:57) [msf-core-2.8.6.2-RELEASE.jar:?]
at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:72) [dubbo-2.6.2.jar:2.6.2]
at com.msf.plus.cat.dubbo.CatTransaction.invoke(CatTransaction.java:67) [msf-plus-2.8.6.2-RELEASE.jar:?]
at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:72) [dubbo-2.6.2.jar:2.6.2]
at com.alibaba.dubbo.rpc.filter.ContextFilter.invoke(ContextFilter.java:72) [dubbo-2.6.2.jar:2.6.2]
at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:72) [dubbo-2.6.2.jar:2.6.2]
at com.alibaba.dubbo.rpc.filter.GenericFilter.invoke(GenericFilter.java:138) [dubbo-2.6.2.jar:2.6.2]
at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:72) [dubbo-2.6.2.jar:2.6.2]
at com.alibaba.dubbo.rpc.filter.ClassLoaderFilter.invoke(ClassLoaderFilter.java:38) [dubbo-2.6.2.jar:2.6.2]
at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:72) [dubbo-2.6.2.jar:2.6.2]
at com.alibaba.dubbo.rpc.filter.EchoFilter.invoke(EchoFilter.java:38) [dubbo-2.6.2.jar:2.6.2]
at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:72) [dubbo-2.6.2.jar:2.6.2]
at com.alibaba.dubbo.rpc.protocol.dubbo.DubboProtocol$1.reply(DubboProtocol.java:103) [dubbo-2.6.2.jar:2.6.2]
at com.alibaba.dubbo.remoting.exchange.support.header.HeaderExchangeHandler.handleRequest(HeaderExchangeHandler.java:96) [dubbo-2.6.2.jar:2.6.2]
at com.alibaba.dubbo.remoting.exchange.support.header.HeaderExchangeHandler.received(HeaderExchangeHandler.java:172) [dubbo-2.6.2.jar:2.6.2]
at com.alibaba.dubbo.remoting.transport.DecodeHandler.received(DecodeHandler.java:51) [dubbo-2.6.2.jar:2.6.2]
at com.alibaba.dubbo.remoting.transport.dispatcher.ChannelEventRunnable.run(ChannelEventRunnable.java:80) [dubbo-2.6.2.jar:2.6.2]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_152]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_152]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_152]
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_152]
Caused by: com.caucho.hessian.client.HessianConnectionException: 413: java.io.IOException: Server returned HTTP response code: 413 for URL: http://10.143.5.6:57994/com.warehouse.api.facade.WarehouseFacade?ServerApplicationName=warehouse-app&anyhost=true&application=gws-app&check=false&default.check=false&default.delay=-1&default.payload=52428800&default.reference.filter=-exception&default.service.filter=-exception&default.timeout=5000&delay=-1&dubbo=2.5.4-RELEASE&generic=false&interface=com.warehouse.api.facade.WarehouseFacade&methods=download,downloadBytes,downloadBytesBatch,upload,buildUrlForOpenFile,getPathForOpenFile,zipCompress,uploadBytes,zipCompressByPassword&organization=720&owner=720loan&payload=157286400&pid=22932&protocol=hessian&qos.enable=false&register.ip=10.143.5.53&remote.timestamp=1541681653305&revision=0.0.2-RELEASE&server=jetty&side=consumer&timeout=2000&timestamp=1542291054639
at com.caucho.hessian.client.HessianURLConnection.sendRequest(HessianURLConnection.java:142) ~[hessian-4.0.7.jar:?]
at com.caucho.hessian.client.HessianProxy.sendRequest(HessianProxy.java:283) ~[hessian-4.0.7.jar:?]
at com.caucho.hessian.client.HessianProxy.invoke(HessianProxy.java:170) ~[hessian-4.0.7.jar:?]
at com.sun.proxy.$Proxy69.downloadBytes(Unknown Source) ~[?:?]
at com.alibaba.dubbo.common.bytecode.Wrapper22.invokeMethod(Wrapper22.java) ~[dubbo-2.6.2.jar:2.6.2]
at com.alibaba.dubbo.rpc.proxy.javassist.JavassistProxyFactory$1.doInvoke(JavassistProxyFactory.java:47) ~[dubbo-2.6.2.jar:2.6.2]
at com.alibaba.dubbo.rpc.proxy.AbstractProxyInvoker.invoke(AbstractProxyInvoker.java:76) ~[dubbo-2.6.2.jar:2.6.2]
at com.alibaba.dubbo.rpc.protocol.AbstractProxyProtocol$2.doInvoke(AbstractProxyProtocol.java:97) ~[dubbo-2.6.2.jar:2.6.2]
at com.alibaba.dubbo.rpc.protocol.AbstractInvoker.invoke(AbstractInvoker.java:148) ~[dubbo-2.6.2.jar:2.6.2]
at com.msf.plus.cat.dubbo.AppNameAppendFilter.invoke(AppNameAppendFilter.java:16) ~[msf-plus-2.8.6.2-RELEASE.jar:?]
at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:72) ~[dubbo-2.6.2.jar:2.6.2]
at com.msf.hystrix.filter.HystrixFilter.invoke(HystrixFilter.java:51) ~[msf-hystrix-2.8.6.2-RELEASE.jar:?]
at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:72) ~[dubbo-2.6.2.jar:2.6.2]
at com.alibaba.dubbo.monitor.support.MonitorFilter.invoke(MonitorFilter.java:75) ~[dubbo-2.6.2.jar:2.6.2]
at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:72) ~[dubbo-2.6.2.jar:2.6.2]
at com.alibaba.dubbo.rpc.protocol.dubbo.filter.FutureFilter.invoke(FutureFilter.java:54) ~[dubbo-2.6.2.jar:2.6.2]
at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:72) ~[dubbo-2.6.2.jar:2.6.2]
at com.msf.core.dubbo.filter.ConsumerContextFilter.invoke(ConsumerContextFilter.java:81) ~[msf-core-2.8.6.2-RELEASE.jar:?]
at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:72) ~[dubbo-2.6.2.jar:2.6.2]
at com.msf.plus.cat.dubbo.CatTransaction.invoke(CatTransaction.java:67) ~[msf-plus-2.8.6.2-RELEASE.jar:?]
at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:72) ~[dubbo-2.6.2.jar:2.6.2]
at com.alibaba.dubbo.rpc.filter.ConsumerContextFilter.invoke(ConsumerContextFilter.java:48) ~[dubbo-2.6.2.jar:2.6.2]
at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:72) ~[dubbo-2.6.2.jar:2.6.2]
at com.alibaba.dubbo.rpc.listener.ListenerInvokerWrapper.invoke(ListenerInvokerWrapper.java:77) ~[dubbo-2.6.2.jar:2.6.2]
at com.alibaba.dubbo.rpc.protocol.InvokerWrapper.invoke(InvokerWrapper.java:56) ~[dubbo-2.6.2.jar:2.6.2]
at com.alibaba.dubbo.rpc.cluster.support.FailoverClusterInvoker.doInvoke(FailoverClusterInvoker.java:78) ~[dubbo-2.6.2.jar:2.6.2]
... 47 more

Issue 2:
I have searched the issues of this repository and believe that this is not a duplicate.

I have checked the FAQ of this repository and believe that this is not a duplicate.

Environment

Dubbo version: 2.6.6

Operating System version: ubuntu 16.04.5

Java version: 1.8

Steps to reproduce this issue

服务端设置服务的超时时间100ms

客户端发送请求。

xxx

Pls. provide [GitHub address] to reproduce this issue.

Expected Result

发送请求在设置的超时时间内超时。

Actual Result

在某些情况下会有异常超时如下。实际elapse时间超过设置timeout。

Caused by: com.alibaba.dubbo.remoting.TimeoutException: Sending request timeout in client-side. start time: 2019-08-02 20:19:14.066, end time: 2019-08-02 20:19:52.800, elapsed: 38734 ms, timeout: 100 ms, request: Request [id=26284376, version=2.0.2, twoway=true, event=false, broken=false,