From: Jamis Buck Date: 2004-09-01T12:04:46+09:00 Subject: Re: Two issues with webrick - both threading & OS related rdlugosz.1044583@bloglines.com wrote: > --- ruby-talk@ruby-lang.org wrote: > >>Actually, that works on all the platforms > > I've >tried. > >>What doesn't work (on some platforms) is >requesting a > > /sleep while > >>another /sleep is in progress. The second sleep >will block, > > waiting for > >>the first. > > > Yes, requesting a different servlet (such as > /greet) while sleep is processing works fine on all platforms for me as well. > And FWIW, the versions on one of the redhat boxes was compiled by hand, the > other from RPM. > > The problem is that /sleep is blocking all other calls > to /sleep. Jamis: could you try that? Just make several requests to /sleep > pretty quickly - do each of your requests all end at about the same time, > or are their completions each ten seconds apart? Just tried it with several nearly-concurrent requests to /sleep, and they all terminated at about the same time. :( > > I agree that the problem > seems "person-specific", but between Jim, myself, and another guy there's > three people and probably 7 or 8 platforms showing the same results. Very strange, indeed. I'm just using the Gentoo ebuild for the bleeding-edge Ruby package. Can anyone else using Gentoo duplicate the problem? I'll admit I'm coming a bit late to this thread: has anyone identified the similarities in the systems among those who have seen this problem? - Jamis > > The > behavior we're seeing is similar to what you would expect from a Java servlet > implementing SingleThreadModel (IIRC). > > Thanks again to all who are helping > with this! > -Ryan > > > . > -- Jamis Buck jgb3@email.byu.edu http://www.jamisbuck.org/jamis "I use octal until I get to 8, and then I switch to decimal."