embedded python

Martijn Faassen m.faassen at vet.uu.nl
Mon Aug 7 15:37:34 EDT 2000


Stefan Seefeld <seefelds at magellan.umontreal.ca> wrote:
> Andrew Kuchling wrote:
>> 
>> On Fri, Aug 04, 2000 at 01:34:50PM -0400, Stefan Seefeld wrote:
>> >I'm working on the berlin project. What I envision is
>> >the possibility to send the server some python script
>> >for example as execution block of a command which is
>> >being instantiated remotely from within clients.
>> 
>> Does this application have to guard against untrusted code, whether
>> inserted by an eavesdropper or from a malicious client?  That might be
>> hard, since there's no very good way to defend against something like:
>> 
>> while 1: pass

> indeed. I don't know how to solve that. While it doesn't make the server
> hang, just the thread which serves this client / request, the problem is
> just elsewhere: massive CPU load.

I may be off base here, but having investigated this type of problem
regarding a possible Python mud, Stackless Python and in particular
microthreads were mentioned. See: www.stackless.com

By the way, checking into the various Python muds (MOOs, etc) out there
may be interesting -- it would seem they'd need a way to cope with this
too.

Oh, and hi Stefan! We chatted at LinuxTag. 

Regards,

Martijn
-- 
History of the 20th Century: WW1, WW2, WW3?
No, WWW -- Could we be going in the right direction?



More information about the Python-list mailing list