From: "NAKAMURA, Hiroshi" Date: 2002-04-11T22:46:19+09:00 Subject: Re: SOAP query Hi, > From: Holden Glova [mailto:dsafari@xtra.co.nz] > Sent: Thursday, April 11, 2002 4:02 PM > > 2. Threading? WEBrick + soaplet.rb runs under MT so > > multiple HTTP request may dive into your servant code. > > The servant which is hosted in soaplet.rb must MT-safe. > Yes NaHi, the day after I posted this query to the ML I did standalone soap > services and they worked 100% of the time. So the problem must be with > WEBrick and/or the soaplet? Guy N. Hurst and I where talking on IRC and your > #2 possibility came up as a possible reason. IIRC I once heard that net/http was not thread safe. I mean MT handling is user's responsibility. > My current solution is to have separate standalone services > instead of useing > the soaplet idea. The thing I liked about the soaplet idea > was that it was a > single point of contact with the clients, but with a > different namespace > provided. WEBrick + soaplet should have a concept of scope, request, session and application. For now soaplet has only an application scope. *sigh* Sorry for not mentioning it yet. I'll add request scope soon. Regarding session scope, I'm waiting for someone writing lightweight session handling module for WEBrick. Only a session handling, not GUI specific. Then all bricklets can have a session scope. Regards, // NaHi