[cgi-devel] Issue with request data and threads
Status: Beta
Brought to you by:
drrngrvy
From: Ankur G. <ank...@gm...> - 2010-08-12 07:13:15
|
Hi Darren, I am trying out the code for server3 in cgi/example/fcgi. The server has 10 threads. I am noticing that after sending 10 requests old requests start recirculating EVEN THOUGH the request URL is different. Eg: First 10 requests: Thread 1: http://foo?x=1. req.get["x"] == 1 Thread 2: http://foo?x=2 req.get["x"] == 2 Thread 3: http://foo?x=3 req.get["x"] == 3 : : Thread 10: http://foo?x=10 req.get["x"] == 10 11th request http://foo?x=11 However doing "req.get["x"] shows 1" instead of 11 12th request http://foo?x=12 Doing "req.get["x"] shows 2" instead of 12 Why is the old data recirculating? I do see the parse_all getting called but it doesn't seem to have any affect. Any help would be really appreciated! Thanks! Ankur |