On Sat, 2003-07-26 at 21:10, Randall Smith wrote: > The case in which I observed this behavior: > > I have a servlet that takes input and sends an email using smtplib. > Today I had network trouble so it could not connect to the mail server. > The servlet would try for about 30 or so seconds to connect before it > failed. While it was attempting to connect, !!!no other servlets would > respond!!! As soon as it finished, they responded. My app is not in > production yet, but this looks like a potential hangup. Does this > behavior sound reasonable for webkit?
No, this is definitely not normal or intended behavior. But Webware runs in a threaded environment -- that means if there's some lock that all servlets try to acquire, only one of them will be able to run at a time. The Global Interpreter Lock is an implicit lock which all threads share, and that may be the problem -- though things like network operations are definitely not supposed to hold onto the GIL when they are stalled. Your use of a single Index.py through which all requests go shouldn't cause a problem -- though I suspect what you are achieving through that is similar to what other developers do through SitePage (i.e., a subclass of Page that all your application pages inherit from, which defines common logic for your application) -- but there's probably nothing wrong with how you are doing it. If you are somehow hitting a lock in Index.py, that would of course effect all your requests. Ian ------------------------------------------------------- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01 _______________________________________________ Webware-discuss mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/webware-discuss
