[AWS] GET Form and Database
Pascal Obry
p.obry@wanadoo.fr
Sun, 1 Jun 2003 23:39:57 +0200
Frederic,
> Into a callback function, I try to connect to a database (ODBC) in order to
> check user/pwd from an user form (in GET method) but the server does not
> response to the client (TimeOut). However, in an independant program, this
> code (concerning database) run in 1 second.
This is strange indeed. Looking at the program below all seems fine. I would
definilty not connect and disconnect to the database for every request, but
yet this should be working.
One idea, maybe the stack size is too small (ODBC certainly use a good chunk
of stack). Each "line" in AWS are handled by a dedicated task, and each stack
get a small stack by default. This way it is possible to have a lot of
simultaneous connection if needed. Try using a bigger stack.
See AWS.Config.Line_Stack_Size.
Pascal.
--
--|------------------------------------------------------
--| Pascal Obry Team-Ada Member
--| 45, rue Gabriel Peri - 78114 Magny Les Hameaux FRANCE
--|------------------------------------------------------
--| http://perso.wanadoo.fr/pascal.obry
--| "The best way to travel is by means of imagination"
--|
--| gpg --keyserver wwwkeys.pgp.net --recv-key C1082595