In the posts of http://www.ruby-forum.com/topic/63984 i have got the
thread question,and the enviroment is webrick. And according to Ray’s
suggestion,I change the value of allow_concurrency in the base.rb to
true,and then webrick can work,although it will brings lots of other
error,it can at least to debug what i want.
Now, I change my enviroment to Apache+scgi to a multithreaded
context,however,no matter how I change the value of allow_concurrency,it
will not work at all.
Then,what should I do in this kind of situation:
controller A will send a request to controller B and will not return
until controller A got the response from controller B