title: Azure Service Bus relay response slow
body: <p>I've a Azure Service Bus Relay hosted in Azure which exposes the end point similar to one below:
  <a href="https://myTestSB.servicebus.windows.net/MyService/LogIn()" rel="nofollow">https://myTestSB.servicebus.windows.net/MyService/LogIn()</a></p>
  
  <p>Interestingly when I make a call to this service bus, it makes 4 calls as shown below. 
  This is causing the slow response. </p>
  
  <p>Could someone 
  clarify what's happening 
  on each call? Does first call #1 have to wait for 2, 3 and 4?</p>
  
  <p>1 (Takes long time)</p>
  
  <pre><code>GET https://myTestSB.servicebus.windows.net/MyService/LogIn()?$filter=UserID eq '1234' and Password eq 'secret'
  User-Agent: Microsoft ADO.NET Data Services
  .....
  Status Code: OK 200
  ...
  </code></pre>
  
  <p>2 </p>
  
  <pre><code>CONNECT https://myTest-sb.accesscontrol.windows.net/WRAPv0.9/
  
  Status Code: OK 200
  Connection: Keep-Alive
  Proxy-Connection: Keep-Alive
  </code></pre>
  
  <p>3</p>
  
  <pre><code>POST https://TestSB-sb.accesscontrol.windows.net/WRAPv0.9/
  Content-Type: application/x-www-form-urlencoded
  Host: TestSB-sb.accesscontrol.windows.net
  Content-Length: 307
  Expect: 100-continue
  Connection: Keep-Alive
  
  Status Code: OK 200
  .......
  </code></pre>
  
  <p>4</p>
  
  <pre><code>CONNECT https://myTestSB.servicebus.windows.net/MyService/LogIn()?$filter=UserID eq '1234' and Password eq 'secret'
  
  Status Code: OK 200
  Connection: Keep-Alive
  Proxy-Connection: Keep-Alive
  </code></pre>
  
  <p>It takes 5-10 seconds for logon Service Bus which only takes less than a second on on-premise environment. Not sure why and how Service Bus is adding delay.</p>