[AWS] Server crashed when using Template_Parser.Set_Tag_Separators at high loads

Pascal Obry pascal at obry.net
Wed Feb 23 10:34:38 CET 2011


Joseph,

> When under a high load the procedure kills the entire server. However
> as long as I don't change it, then its not a problem. Its different on
> each of my computers. My home computer will crash when there is more
> then one connection, while my work computer will handle a large number
> of connection but eventually die.
>
> Used: ab -n 1000 -c 100 http://localhost:8184/
> With Set_Tag_Separators = Crash
> Without Set_Tag_Separators = No Crash

This is expected in your example. You are calling Set_Tag_Separators 
which is a non thread safe routine from a callback. It is designed to be 
called only once to set the global properties. This must be done before 
starting the server to be safe.

Pascal.

-- 

--|------------------------------------------------------
--| Pascal Obry                           Team-Ada Member
--| 45, rue Gabriel Peri - 78114 Magny Les Hameaux FRANCE
--|------------------------------------------------------
--|    http://www.obry.net  -  http://v2p.fr.eu.org
--| "The best way to travel is by means of imagination"
--|
--| gpg --keyserver keys.gnupg.net --recv-key F949BD3B



More information about the AWS mailing list