The following procedures: 1 Browser send a http request to controller A and wait for response 2 controller A send a http request to controller B and wait for response 3 Browser will not get the response unless controller A got response from controller B btw there exist only one pc for developing. Webrick can not support such a kind of request/response?>From the log I traced i found that the connection that controller A wantto establish with controller B will be return an error of time out. -- Posted via http://www.ruby-forum.com/.
Tom Mornini
2006-Apr-29 09:02 UTC
[Rails] Webrick can not support such a request/response?
That''s absolutely correct. A singe Webrick or Mongrel only supports one active Rails thread at a time. That thread takes the response, and issues another against the same Webrick or Mongrel. The second request cannot begin until the first completes, and the first cannot complete until the second completes, thereby giving a classic deadly embrace. -- -- Tom Mornini On Apr 29, 2006, at 1:27 AM, charlie wrote:> The following procedures: > 1 Browser send a http request to controller A and wait for response > 2 controller A send a http request to controller B and wait for > response > 3 Browser will not get the response unless controller A got response > from controller B > btw there exist only one pc for developing. > Webrick can not support such a kind of request/response? >> From the log I traced i found that the connection that controller >> A want > to establish with controller B will be return an error of time out.