<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have searched the <a href="https://github.com/apache/incubator-dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have checked the <a href="https://github.com/apache/incubator-dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li>
</ul>
<h3 dir="auto">Environment</h3>
<ul dir="auto">
<li>Dubbo 2.6.3</li>
<li>spring-integration-httpinvoker 2.0.6.RELEASE</li>
<li>Operating System version: win10</li>
<li>Java version: 1.8</li>
</ul>
<h3 dir="auto">Steps to reproduce this issue</h3>
<div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="protocol.refer(DemoService.class, URL.valueOf(&quot;http://127.0.0.1:20880/com.wg.dubbo.service.DemoService?sayHello.timeout=60000&quot;))"><pre class="notranslate"><span class="pl-s1">protocol</span>.<span class="pl-en">refer</span>(<span class="pl-smi">DemoService</span>.<span class="pl-k">class</span>, <span class="pl-smi">URL</span>.<span class="pl-en">valueOf</span>(<span class="pl-s">"http://127.0.0.1:20880/com.wg.dubbo.service.DemoService?sayHello.timeout=60000"</span>))</pre></div>
<p dir="auto">或</p>
<div class="highlight highlight-text-xml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;dubbo:reference id=&quot;demoService&quot; interface=&quot;com.wg.dubbo.service.DemoService&quot; url=&quot;http://localhost:20880&quot;&gt;
        &lt;dubbo:method name=&quot;sayHello&quot; timeout=&quot;6000&quot; retries=&quot;2&quot;/&gt;
    &lt;/dubbo:reference&gt;"><pre class="notranslate">&lt;<span class="pl-ent">dubbo</span><span class="pl-ent">:</span><span class="pl-ent">reference</span> <span class="pl-e">id</span>=<span class="pl-s"><span class="pl-pds">"</span>demoService<span class="pl-pds">"</span></span> <span class="pl-e">interface</span>=<span class="pl-s"><span class="pl-pds">"</span>com.wg.dubbo.service.DemoService<span class="pl-pds">"</span></span> <span class="pl-e">url</span>=<span class="pl-s"><span class="pl-pds">"</span>http://localhost:20880<span class="pl-pds">"</span></span>&gt;
        &lt;<span class="pl-ent">dubbo</span><span class="pl-ent">:</span><span class="pl-ent">method</span> <span class="pl-e">name</span>=<span class="pl-s"><span class="pl-pds">"</span>sayHello<span class="pl-pds">"</span></span> <span class="pl-e">timeout</span>=<span class="pl-s"><span class="pl-pds">"</span>6000<span class="pl-pds">"</span></span> <span class="pl-e">retries</span>=<span class="pl-s"><span class="pl-pds">"</span>2<span class="pl-pds">"</span></span>/&gt;
    &lt;/<span class="pl-ent">dubbo</span><span class="pl-ent">:</span><span class="pl-ent">reference</span>&gt;</pre></div>
<p dir="auto">provider超时的sayHello执行sleep 5秒，会报超时。</p>
<p dir="auto">设置为</p>
<div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="protocol.refer(DemoService.class, URL.valueOf(&quot;http://127.0.0.1:20880/com.wg.dubbo.service.DemoService?timeout=60000&quot;))"><pre class="notranslate"><span class="pl-s1">protocol</span>.<span class="pl-en">refer</span>(<span class="pl-smi">DemoService</span>.<span class="pl-k">class</span>, <span class="pl-smi">URL</span>.<span class="pl-en">valueOf</span>(<span class="pl-s">"http://127.0.0.1:20880/com.wg.dubbo.service.DemoService?timeout=60000"</span>))</pre></div>
<p dir="auto">或</p>
<div class="highlight highlight-text-xml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;dubbo:reference id=&quot;demoService&quot; interface=&quot;com.wg.dubbo.service.DemoService&quot; url=&quot;http://localhost:20880&quot; timeout=&quot;6000&quot; retries=&quot;2&quot;&gt;
        &lt;dubbo:method name=&quot;sayHello&quot; /&gt;
    &lt;/dubbo:reference&gt;"><pre class="notranslate">&lt;<span class="pl-ent">dubbo</span><span class="pl-ent">:</span><span class="pl-ent">reference</span> <span class="pl-e">id</span>=<span class="pl-s"><span class="pl-pds">"</span>demoService<span class="pl-pds">"</span></span> <span class="pl-e">interface</span>=<span class="pl-s"><span class="pl-pds">"</span>com.wg.dubbo.service.DemoService<span class="pl-pds">"</span></span> <span class="pl-e">url</span>=<span class="pl-s"><span class="pl-pds">"</span>http://localhost:20880<span class="pl-pds">"</span></span> <span class="pl-e">timeout</span>=<span class="pl-s"><span class="pl-pds">"</span>6000<span class="pl-pds">"</span></span> <span class="pl-e">retries</span>=<span class="pl-s"><span class="pl-pds">"</span>2<span class="pl-pds">"</span></span>&gt;
        &lt;<span class="pl-ent">dubbo</span><span class="pl-ent">:</span><span class="pl-ent">method</span> <span class="pl-e">name</span>=<span class="pl-s"><span class="pl-pds">"</span>sayHello<span class="pl-pds">"</span></span> /&gt;
    &lt;/<span class="pl-ent">dubbo</span><span class="pl-ent">:</span><span class="pl-ent">reference</span>&gt;</pre></div>
<p dir="auto">会timeout会生效</p>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/apache/dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/apache/dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li>
</ul>
<h3 dir="auto">Environment</h3>
<ul dir="auto">
<li>Dubbo version: 2.6.6</li>
<li>Operating System version: *nix</li>
<li>Java version: 1.7+</li>
</ul>
<h3 dir="auto">Expected Result</h3>
<p dir="auto">throw new IOException("Unknown result flag, expect '0' '1' '2' '3' '4' '5', get " + flag);</p>
<h3 dir="auto">Actual Result</h3>
<p dir="auto">throw new IOException("Unknown result flag, expect '0' '1' '2', get " + flag);</p>
<p dir="auto">since dubbo add new type for class dubbocodec  for  issue <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="326001291" data-permission-text="Title is private" data-url="https://github.com/apache/dubbo/issues/1843" data-hovercard-type="pull_request" data-hovercard-url="/apache/dubbo/pull/1843/hovercard" href="https://github.com/apache/dubbo/pull/1843">#1843</a><br>
we should also change the exception message .</p>
<p dir="auto">For example, if dubbo provides new protocol version(higher than 2.0.2) .then the high version dubbo invoke the lower version dubbo[2.0.2] with no support codec ,then the lower version dubbo throws ioexception with incorrect message.<br>
So we need fixit</p>