title: Can connection.AioHttpApp handle multiple requests?
body: <p>I have an <code>aiohttp</code> application that I generated from a JSON <code>openapi</code> document.</p>
  <p>It works well if I send the requests one at a time, for example:</p>
  <pre class="lang-bash prettyprint-override"><code>curl -X GET http://localhost:8000/v1/foo
  </code></pre>
  <p>The problem is that I have a scenario that one function will take some time to complete and in between another call will come to the application, when that happens he <code>aiohttp</code> application cannot handle the new request and blocks.</p>
  <p>I tried to test like the following:</p>
  <ol>
  <li>I created a while True loop inside one call.</li>
  </ol>
  <pre class="lang-py prettyprint-override"><code>async def get_devices_count(request: web.Request) -&gt; web.Response:
      while 1:
          time.sleep(2)
          print(&quot;Still in devices count ...&quot;)
      return web.Response(status=200)
  </code></pre>
  <ol start="2">
  <li>I just print some info in another call.</li>
  </ol>
  <pre class="lang-py prettyprint-override"><code>async def get_device(request: web.Request) -&gt; web.Response:
      print(&quot;get device&quot;)
      return web.Response(status=200)
  </code></pre>
  <p>The <code>AioHttp</code> application should be able to handle multiple requests.</p>
  <p>Here how I run it:</p>
  <pre class="lang-bash prettyprint-override"><code>$ python3 -m myapplication
  
  ======== Running on http://0.0.0.0:8000 ========
  (Press CTRL+C to quit)
  </code></pre>
  <p>Now, when I request the while True it start running inside the loop:</p>
  <pre class="lang-bash prettyprint-override"><code>curl -X GET http://localhost:8000/v1/devices/count
  </code></pre>
  <p>I see:</p>
  <pre class="lang-bash prettyprint-override"><code>======== Running on http://0.0.0.0:8000 ========
  (Press CTRL+C to quit)
  Still in devices count ...
  Still in devices count ...
  Still in devices count ...
  Still in devices count ...
  Still in devices count ...
  Still in devices count ...
  </code></pre>
  <p>Now when I try to request the other call it get stuck waiting and nothing get shown in the <code>AioHttp</code> console.</p>
  <p>My question is, is this an <code>aiohttp</code> limitation ? Or is there a way to make it work ?</p>
  <p>Thanks,
  Talel</p>