Forum: Ruby on Rails Webrick can not support such a request/response?

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
2cf7af8ebb619eeb30178dd8855245b8?d=identicon&s=25 charlie (Guest)
on 2006-04-29 10:27
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.
59de94a56fd2c198f33d9515d1c05961?d=identicon&s=25 Tom Mornini (Guest)
on 2006-04-29 11:04
(Received via mailing list)
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
This topic is locked and can not be replied to.