<div dir="ltr"><span style="font-family:arial,sans-serif;font-size:13px">Hi,</span><div style="font-family:arial,sans-serif;font-size:13px">I&#39;m writing a simple JSONRPC server that is intended to have a number of longpolling http connections. </div>
<div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">-On the server side, I&#39;m using txJSON-RPC and utilizing returning deferred (which translate into NOT_DONE_YET at the next layer). </div>
<div style="font-family:arial,sans-serif;font-size:13px">-On a clientside, I&#39;m using JQuery to kick off a longpolling ajax POST to the rpc interface. </div><div style="font-family:arial,sans-serif;font-size:13px"><br>
</div><div style="font-family:arial,sans-serif;font-size:13px">Upon the requests arrival to the RPC server I returned a Deferred, adding it to my list. The POST should only return data (finish the request) once the server side has some changed state. It works for basic tests. </div>
<div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">However, once I increase the number of outstanding connections, I don&#39;t see any more connections accepted from my browser. I seem to be capped at 6 open connections. If I start a new browser, ie: chrome, or even change the URL from localhost to 127.0.0.1 I&#39;m able to open another 6. </div>
<div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">I&#39;ve never done much server programming so I&#39;m a bit confused as to where to look to fix this. I&#39;ve import pdb and set_trace() all the way down to the tcp.py part and I still don&#39;t see any activity coming in.</div>
<div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">What steps should I take to identify and fix this limitation? Any help would be appreciated!</div>
<div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">-Adam</div></div>