title: WSO2 EI how to increasing Endpoint timeout?
body: <p>I have setted configure and endpoint timeout but it have below response.</p>
  
  <p>What should I pay attention if I want to increase endpoint timeout?</p>
  
  <pre><code>&lt;html&gt;
      &lt;body&gt;
          &lt;h1&gt;504 Gateway Time-out&lt;/h1&gt;
  The server didn't respond in time.
      &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p><strong>There are 3 steps to set timeout but it appear fault....</strong></p>
  
  <p>1) Global timeout defined in synapse.properties (EI_HOME\conf\synapse.properties) </p>
  
  <p>synapse.global_timeout_interval=17000000</p>
  
  <p>2) Socket timeout defined in the passthru-http.properties (EI_HOME\conf\passthru-http.properties ) </p>
  
  <p>http.socket.timeout=18000000</p>
  
  <p>3) Also set timeout in API.</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;endpoint name="ep_dsData" xmlns="http://ws.apache.org/ns/synapse"&gt;
      &lt;http method="post" uri-template="{uri.var.origin.ds}/api/v1/GetData"&gt;
          &lt;timeout&gt;
              &lt;duration&gt;17000000&lt;/duration&gt;
              &lt;responseAction&gt;fault&lt;/responseAction&gt;
          &lt;/timeout&gt;
      &lt;/http&gt;
  &lt;/endpoint&gt;
  </code></pre>