<html><body><div style="color:#000; background-color:#fff; font-family:arial, helvetica, sans-serif;font-size:12pt"><div>I'm using httpc to load test a Comet long-polling server.</div><div>Each client is simulated with a gen_server that makes an http request using httpc.</div><div>The first request the client send is a sync request and subsequent requests are async.<br></div><div><br></div><div>On the server side, in the receive of the pid that has the socket, I'm getting a message from a request sent by another client:<br></div><div>{tcp,#Port<0.4011>,"GET /test/?user=12 HTTP/1.1\r\nHost: host.test:8000\r\nContent-Length: 0\r\n\r\n"}</div><div>The above happens when all clients are using the default httpc profile.</div><div>When I'm using a separate profile for each client, I don't get the above message.</div><div>The problem is that I'm exceeding the max allowed ETS tables.</div><div>Does each profile use a separate ETS table?
 (why?)<br></div><div><br></div><div>Is it a known behavior that a socket get a new http request before responding to the first one?</div><div>Is it related to pipelining?</div><div>What setting do I need for the default profile to make it work like a separate profile for each client?</div><div><br></div><div>Thanks<br></div></div></body></html>